In the PROMOTIC system it is better to use the Pm.StringCmp method.
string1 | (String) Text string |
---|---|
string2 | (String) Text string |
compare | [optional] (Integer) Numeric value indicating the kind of comparison to use when evaluating strings. If not set, then a binary comparison is performed. vbBinaryCompare - perform a binary comparison vbTextCompare - perform a textual comparison |
Dim sStr1, sStr2, nComp
sStr1 = "ABCD"
sStr2 = "abcd"
nComp = StrComp(sStr1, sStr2, 1) 'Returns 0
nComp = StrComp(sStr1, sStr2, 0) 'Returns -1
nComp = StrComp(sStr2, sStr1) 'Returns 1