FindFirstUTF8 function
Starts searching for files matching the specified path value.
Declaration
function FindFirstUTF8(const Path: string; Attr: LongInt;
out Rslt: TSearchRec): LongIntArguments
Path | Path and/or file name to locate. |
Attr | File attributes to include in the search. |
Rslt | Search record for the first matching file. |
Function result
Last error number encountered in the function.
Description
FindFirstUTF8 searches the for file which match the value
specified in Path. Normal files, as well as all special files which have the
attributes specified in Attr will be returned.
It returns a SearchRec record for further searching in Rslt. Path can contain wildcard characters; ? (matches any single character) and * (matches 0 or more arbitrary characters). In this case FindFirstUTF8 will return the first file which matches the specified criteria.
The return value contains the result from GetLastError; a non-zero value indicates that no files matching the criteria were found.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
