[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Specifies an event handler signalled when a directory name matching a search criteria is found in TFileSearcher.
Source position: fileutil.pas line 126
type TQueryDirectoryFoundEvent = procedure( |
FileIterator: TFileIterator; |
const Dir: string; |
var Accept: Boolean |
) of object; |
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. |
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.
|
Event handler signalled to accept or reject a subdirectory in the Search method. |
|
|
Implements an iterator for file and directory names on the local file system. |
Version 4.0 | Generated 2025-05-03 | Home |