[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Starts searching for files matching the specified path value.
Source position: lazfileutils.pas line 114
function FindFirstUTF8( |
const Path: string; |
Attr: LongInt; |
out Rslt: TSearchRec |
):LongInt; |
Path |
|
Path and/or file name to locate. |
Attr |
|
File attributes to include in the search. |
Rslt |
|
Search record for the first matching file. |
Last error number encountered in the function.
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.
Version 4.0 | Generated 2025-05-03 | Home |