Icon CompareStr

Unit: Internal

Available In: Client and Server Applications

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

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