Overview | Statement List | Example
CMPSTR('string1','string2')
Performs a lexical comparison of characters in a similar position in two strings. This comparison is based on the ASCII values contained in the ASCII Conversion Table. If the two strings are identical a 0 is returned. If the two strings are not identical and the character in string1 lexically precedes the character in string2, a -1 is returned, if string1 follows string2, a 1 is returned.
Parameter |
Description |
'string1' |
The literal string or string variable name of a string which is evaluated against string2. |
'string2' |
The literal string or string variable name of a string which is evaluated against string1. |