[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'FileUtil' (#lazutils)

TFileSearcher.DoQueryFileFound

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

Declaration

Source position: fileutil.pas line 149

protected procedure TFileSearcher.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.


Version 4.0 Generated 2025-05-03 Home