Icon LocaleCompareText

Unit: Internal

Available In: Client and Server Applications

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

The LocaleCompareText function compares the A string input parameter with the B string input parameter without 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 := LocaleCompareText('Absolute', 'ABSOLUTE');  // X is 0
Image