Icon CompareText

Unit: Internal

Available In: Client and Server Applications

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

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