Compares two string and returns a value depending on the lexical order of the strings.
Syntax: StrCompare (String, String [,Compare Constant])
Compare Constant can be: cCaseSensitive or cCaseUnsensitive.
StrCompare returns a number less than zero if the first string is less than the second
string.
It returns zero if the strings are equal and a number greater than zero if the first string is
greater than the second string.
If the Compare Constant is omitted, the comparing will be not case sensitive.
Example:
i = StrCompare (TextBox1.Text, TextBox2.Text, cCaseSensitive)
If i = 0 Then
Msgbox("Both equal")
Else If i<0 Then
Msgbox("TextBox1 is smaller")
Else
Msgbox("TextBox2 is smaller")
End If