VirtualDAC
Occurs when the query is opened to register the user-defined functions used in the query text.
TCustomVirtualQuery
property OnRegisterFunctions: TRegisterFunctionsEvent;
The event occurs before a component has executed a query.