Utilities.StrLComp Method

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

Description

The Utilities.StrLComp method compares the first MaxLen characters of the strings specified by the Str1 and Str2 parameters and returns the result of the comparison. The comparison is case-sensitive.

If one of the strings is shorter than MaxLen, the longer string is considered as the “greater” one.

Declaration

Utilities.StrLComp(Str1, Str2, MaxLen)

Str1 [in]    Required    String    
Str2 [in]    Required    String    
MaxLen [in]    Required    Integer    
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 to be compared.

MaxLen

Specifies the length of the string parts to be compared.

Result Value

If Str1 > Str2, the result is positive. If Str1 < Str2, the result is negative. If Str1 = Str2, the function returns 0.

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