Utilities.AnsiCompareFileName Method

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

Description

The Utilities.AnsiCompareFileName method compares two file names under control of the current locale. Comparison is case-insensitive.

Declaration

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

The strings that specify the file names that should be compared by the method.

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 file names are identical.

Remarks

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

See Also

Compare Method
GetFileName Method
Name Property
GetFileFolder Method
Path Property

Highlight search results