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

TFileSearcher.OnQueryFileFound

Event handler signalled to accept or reject a file name found using the class.

Declaration

Source position: fileutil.pas line 165

public property TFileSearcher.OnQueryFileFound : TQueryFileFoundEvent
  read FOnQueryFileFound
  write FOnQueryFileFound;

Description

OnQueryFileFound is a TQueryFileFoundEvent property with the event handler signalled to accept or reject a specific file name found in the Search method. OnQueryFileFound is signalled (when assigned) from the DoQueryFileFound method called during execution of the Search method.

An application can implement and assign a handler routine to respond to the notification. Use the parameters in the TQueryFileFoundEvent implementation to examine a specific file name, and set the return value which indicates whether the file name is accepted or rejected.

Version info

Added in LCL version 4.0.

See also

TFileSearcher.Search

  

Searches for files or directories in the specified path(s) using the specified options.

TFileSearcher.DoQueryFileFound

  

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

TFileSearcher.OnFileFound

  

Event handler signalled when a file matching the file mask is found in the Search method.

TQueryFileFoundEvent

  

Specifies an event handler signalled when a file name matching a search criteria is found in TFileSearcher.


Version 4.0 Generated 2025-05-03 Home