StrComp

Compare two strings.
Syntax
StrComp(String1, String2 [,compare] )

Key
String1 A string expression.

String2 A string expression.

compare vbBinaryCompare (0) or vbTextCompare(1)

If string1 = string2 StrComp returns 0 (vbFalse)
If string1 < string2 StrComp returns -1 (vbTrue)
If string1 > string2 StrComp returns 1
If either string = null StrComp returns null

Example
strPerson ="Hilary"
result = StrComp("Hilary", strPerson)
WScript.Echo result 

Make a Free Website with Yola.