Sign in Join
FPDoc Onlineexperiment

TFileSearcher.DoQueryFileFound procedure

Member of TFileSearcherprotectedIn unit FileUtil

Performs actions needed to accept or reject a file name processed in the Search method.

Declaration

pascal
procedure DoQueryFileFound(const Fn: string; var Accept: Boolean)

Arguments

Fn

File name passed to OnQueryFileFound event handler.

Accept

Returns True if the specified file name can be used. Returns False if the specified file name should be omitted.

Description

DoQueryFileFound signals the OnQueryFileFound event handler (when assigned) to allow the application to decide if the Fn argument contains a file name which can be used in the class. An application must implement and assign a handler routine to OnQueryFileFound to respond to the notification.

DoQueryFileFound is called during execution of the Search method when a file name is found using the search path and search mask passed to the method. Set Accept to True if the file name can be used in the class to signal the OnFileFound event handler.

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