StrComp (function)

<< Click to Display Table of Contents >>

StrComp (function)

StrComp(String1, String2 [, IgnoreCase])

Compares two strings.

If the parameter IgnoreCase is True, the casing of the letters is ignored. If it is False or omitted, the comparison is case-sensitive.

The function returns the following result:

0 if the strings are equal

-1 if String1 < String2

1 if String1 > String2