Monday, August 16, 2010

Visual Basic String Function : StrComp

Purpose : strComp compares two strings

Syntax :
StrComp ( strString1 , strString2 [ , compareType% ] )

strString1 : First string you want to compare
strString2 : Second string your want to compare
compareType% : 0 for case-sensitive comparison , 1 for non-case-sensitive comparison.

Return value of the strComp Function
strString1< strString2 = -1
strString1 = strString2 = 0
strString1 > strString2 = 1
Either string is null = Null

hilo = strComp ( in$ , old$ )

No comments:

Post a Comment