Sign in Join
FPDoc Onlineexperiment

TFileSearcher.DoQueryDirectoryEnter procedure

Member of TFileSearcherprotectedIn unit FileUtil

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

Declaration

pascal
procedure DoQueryDirectoryEnter(const Dir: string; var Accept: Boolean)

Description

DoQueryDirectoryEnter signals the OnQueryDirectoryEnter event handler (when assigned) to allow the application to decide if the Dir argument contains a directory name which can be used in the class. An application must implement and assign a handler routine to OnQueryDirectoryEnter to respond to the notification.

OnQueryDirectoryEnter is called during execution of the Search method when a directory name is detected and accepted using the search path and search mask passed to the method. Set Accept to True if the directory name can be used in the class to signal the OnDirectoryEnter event handler.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.