string1 = "Alaska"
string2 = "California"
result = StrComp(string1,string2,vbTextCompare)
' result = 0 if the strings are identical (case-insensitive)
' result = -1 if string1 is lexicographically less than string2
' result = 1 if string1 is lexicographically greater than string2
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)