strCompare (Function) |
Top Previous Next |
strCompare compares two strings and returns a number that specifies which one of the strings is greater than the other or if they are equal. It is possible to test strings without case sensitivity - that is to say that "abc" will be the same as "ABC". If no case-checking is done (see input parameter CheckCase).
Input: str1 : STRING String 1 for the compare function.
str2 : STRING String 2 for the compare function.
CheckCase : BOOL Default: FALSE TRUE if the search should be case-sensitive.
Returns: INT(-1,0,1)
Declaration: FUNCTION strCompare : INT;
Example: INCLUDE rtcu.inc |