The Conroy & Conroy Subroutine Library (2021.3 edition)

FindFirst
What: integer function
File:
Layer: 1
Format: result = FindFirst( Name, Flags, Context )
Platforms: C++, C#, Pascal, PHP

This function looks up the first file matching the Name (which can contain wildcards), sets up the context (an instance of TSearchRec). If 0 is returned, the lookup was a success, otherwise no match was found. For Pascal, this is only defined if the version of Pascal being used does not provide the function.

This is provided for cross-platform support only. You should use the Lookup function to iterate through files in a directory.