Utilities.FindNext Method

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

Description

The Utilities.FindNext method continues the search initiated by a preceding call to FindFirst. Using the FindFirst and FindNext routines, you can iterate through all the files that are located at the same path and that match the same search criteria.

Declaration

Utilities.FindNext(F)

F [in]    Required    A TSearchRec object    
Result Integer

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

F

The F parameter specifies the TSearchRec object that was returned by the FindFirst function.

Note: Before using the TSearchRec object in the FindFirst and FindNext functions, you should create this object by calling the Utilities.TSearchRec method.

Result Value

If the search is successful, FindNext returns 0. Otherwise, it returns a Windows error code.

Remarks

This method is obsolete. It is supported for backward compatibility only. To search for files, use the aqFileSystem.FindFiles method.

See Also

FindFiles Method
Exists Method
GetFileAttributes Method
TSearchRec Object
Processing Files in a Folder

Highlight search results