StrComp

This function compares two strings, string 1 and string 2, optionally specifying the comparison mode, compare. The compare argument can be 0 or 1. If compare is omitted, a binary comparison is performed.

Syntax

StrComp(string 1, string 2[compare])

Return Values

The values returned by this function are shown in the following table.

Condition Return Value
string 1 is less than string 2 -1
string 1 is equal to string 2 0
string 1 is greater than string 2 1