Description
The StrCmp function compares two strings.
Overloads
StrCmp (str1, str2, compare)
Arguments
str1 is the first text string to be compared.
str2 is the second text string to be compared.
compare is an optional Number value indicating the kind of string comparison to use:
0 performs a comparison that is case-sensitive
1 performs a comparison that is case-insensitive
If omitted, a case-sensitive comparison is performed.
Returns
Whole Number where
Action
The StrCmp function compares two strings.
Typical Uses
Use this function to determine if two string values are identical.
Examples
StrCmp("abcd", "aa")
Returns = 1.
StrCmp("abcd", "aa", 1)
Returns = 1.
StrCmp ("abcd", "ac")
Returns = -1.
StrCmp ("aa", "aa")
Returns = 0.