Utilities.AnsiSameStr Method

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


The Utilities.AnsiSameStr method compares two strings specified by the Str1 and Str2 parameters and returns True if they are equal. Otherwise, it returns False. Comparison is case-sensitive and is affected by the current locale.


Utilities.AnsiSameStr(Str1, Str2)

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

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

True if the specified strings are equal. Otherwise, False.


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