Skip to content

TSQLScript.OnDirective

Event handler if a directive is encountered.

Declaration

Source position: sqldb.pp line 765

published property OnDirective: TSQLScriptDirectiveEvent;

Description

OnDirective is called when a directive is encountered. When parsing the script, the script engine checks the first word of the statement. If it matches one of the words in Directives property then the OnDirective event handler is called with the name of the directive and the rest of the statement as parameters. This can be used to handle all kind of pre-processing actions such as Set term \^ ;

See also

Name Description
Directives List of directives.