Utilities.CompareText Method

Applies to TestComplete 15.10, last modified on December 01, 2021
This method is obsolete. See the Remarks section below.


The Utilities.CompareText method compares two strings. Comparison is case-insensitive. The comparison operation is not affected by the current locale.


Utilities.CompareText(Str1, Str2)

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

Applies To

The method is applied to the following object:


The method has the following parameters:

Str1 and Str2

Specify the strings that should be compared.

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.


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

See Also

Working With Strings
Compare Method

Highlight search results