Utilities.CompareStr Method

Applies to TestComplete 15.47, last modified on January 20, 2023
This method is obsolete. See the Remarks section below.

Description

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

Declaration

Utilities.CompareStr(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

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.

Remarks

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