StrComp

The StrComp function is used to compare two strings by comparing the characters in one string to the characters in another.

Syntax

Variable = StrComp ( string1, string2 )

Remarks

The StrComp instruction is used to determine if two strings are identical.  The result of this function is 0 if both strings are equal, 1 if the first character that does not match has a greater value in string1 than in string2, and -1 if the first character that does not match has a greater value in string2 than in string1. StrComp is not case sensitive.