TQueryDirectoryFoundEvent procedure type
Specifies an event handler signalled when a directory name matching a search criteria is found in TFileSearcher.
Declaration
TQueryDirectoryFoundEvent = procedure(FileIterator: TFileIterator;
const Dir: string;
var Accept: Boolean) of objectArguments
FileIterator | Iterator class instance (TFileIterator) for the notification. |
Dir | Directory name for the notification. |
Accept | True to accept the directory name. False to reject it. |
Description
TQueryDirectoryFoundEvent is the type used to implement the OnQueryFileFound event handler in TFileSearcher. It allows a a directory name to be examined to determine whether it can be accepted in the iterator. An application must implement a handler routine using the signature in TQueryDirectoryFoundEvent 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.
