Sign in Join
FPDoc Onlineexperiment

FindNextUTF8 function

In unit LazFileUtils

Locates another file matching the search criteria.

Declaration

pascal
function FindNextUTF8(var Rslt: TSearchRec): LongInt

Arguments

Rslt

Search criteria for the function.

Function result

Last error number.

Description

FindNextUTF8 is a Longint function used to locate another file matching the TSearchRec value in Rslt. Rslt is populated in a prior call to FindFirstUTF8, and updated in FindNextUTF8.

For the Windows environment, FindNextFileW is called to compare the TWIN32FINDDATAW for the matching file. For UNIX-like environments, the FindNext function in SysUtils is used.

The return value contains the result from GetLastError; a non-zero value indicates that an error was encountered.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.