Icon LocaleCompareStr

Unit: Internal

Available In: Client and Server Applications

function LocaleCompareStr(const A, B: String): Integer

The LocaleCompareStr function compares the A string input parameter with the B string input parameter with case-sensitivity. The comparison uses the browser's current locale setting to compare the two strings. The return value is an Integer value of -1 if A is less than B, 0 if A is equal to B, and 1 if A is greater than B.

Examples

X := LocaleCompareStr('Absolute', 'Baseball');  // X is -1
Image