Appearance
CompareText
Declaration
Function CompareText( const S1, S2 : string) : Integer
Example
pascal
procedure OnMapEvent(var Value:Variant);
begin
if CompareText('abc','ABC')=0 then //this would return true
LogInfo('The strings match each other');
end;Description
Compares the given strings case insensitive and returns 0 if they match. Returns -1 if S1 is less than S2 (alphabetically), and 1 if S1 is greater than S2 (alphabetically).