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

TQueryFileFoundEvent

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

Declaration

Source position: fileutil.pas line 125

type TQueryFileFoundEvent = procedure(

  FileIterator: TFileIterator;

  const Fn: string;

  var Accept: Boolean

) of object;

Arguments

FileIterator

  

Iterator class instance (TFileIterator) for the notification.

Fn

  

File name for the notification.

Accept

  

True to accept the file name. False to reject it.

Description

TQueryFileFoundEvent is the type used to implement the OnQueryFileFound event handler in TFileSearcher. It allows a a file name to be examined to determine whether it can be accepted in the file iterator. An application must implement a handler routine using the signature in TQueryFileFoundEvent to respond to the notification event.

Set the Accept argument to True if the file name in Fn can be used by the file iterator.

See also

TFileSearcher.OnQueryFileFound

  

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

TFileIterator

  

Implements an iterator for file and directory names on the local file system.


Version 4.0 Generated 2025-05-03 Home