TQueryFileFoundEvent procedure type
Specifies an event handler signalled when a file name matching a search criteria is found in TFileSearcher.
Declaration
TQueryFileFoundEvent = procedure(FileIterator: TFileIterator;
const Fn: string; var Accept: Boolean)
of objectArguments
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
