_@STRICMP |
|
_@STRICMP function is used in a Logic Template to compare two strings just as strcasecmp is used in the C programming language. The two strings are passed as arguments to the function. They are compared on a character by character basis without regard to case. That is the two strings "HELLO" and "hello" would be considered identical.
Returns
Value |
Description |
0 |
The two strings are identical. |
-1 |
The first string is shorter than the second string, but every character in the first string is an exact match to the corresponding character in the second string. |
1 |
The second string is shorter than the first string, but every character in the second string is an exact match to the corresponding character in the first string. |
-1 |
The strings do not match, and the first character within the first string not to match the corresponding character in the second string has a lower intrinsic value after being converted to lower case than the corresponding character in the second string after being converted to lower case. |
1 |
The strings do not match, and the first character within the first string not to match the corresponding character in the second string has a higher intrinsic value after being converted to lower case than the corresponding character in the second string after being converted to lower case. |
Format
_@STRICMP( string_1,
string_2
);
Argument |
Description |
string_1 |
The first string literal or the name of the first string data field to be tested. |
string_2 |
The second string literal or the name of the second string data field to be tested. |
Example
//Only display cities beginning with "M" or "m"
IF ( (0 <= _@STRICMP( City, "M" ) ) && (0 > _@STRICMP( City, "N" ) ) )
. . . . . . .
ENDIF