Utilities.AnsiCompareText Method

Applies to TestComplete 15.69, last modified on November 13, 2024
This method is obsolete. See the Remarks section below.

Description

The Utilities.AnsiCompareText method compares two strings under control of the current locale. Comparison is case-insensitive.

Declaration

Utilities.AnsiCompareText(Str1, Str2)

Str1 [in]    Required    String    
Str2 [in]    Required    String    
Result Integer

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

Str1 and Str2

The strings that should be compared by the method.

Result Value

The result value is greater than zero if Str1 > Str2. If Str1 < Str2, the result value is less than zero. It equals zero only if Str1 = Str2, which means the strings are identical.

Remarks

This method is obsolete. It is supported for backward compatibility only. To compare string values, use the aqString.Compare method.

See Also

Working With Strings
Compare Method

Highlight search results