Utilities.StrLIComp Method

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

Description

The Utilities.StrLIComp 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-insensitive.

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

Declaration

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

Specify the strings to be compared.

Str2

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