StringCompare()
- Last UpdatedJul 22, 2024
- 1 minute read
Compares a string value with another string.
Category
String
Syntax
StringCompare( Text1, Text2 );
Parameters
Text1
First string in the comparison.
Text2
Second string in the comparison.
Return value
The return value is zero if the strings are identical, -1 if Text1’s value is less than Text2, or 1 if Text1’s value is greater than Text2.
Example
Result = StringCompare ("Text1","Text2"); (or)
Result = StringCompare (MText1,MText2);
Where Result is an Integer or Real tag and MText1 and MText2 are Memory Message tags.