TApxScript.OnScriptUserFunction

TApxScript

property OnScriptUserFunction : TScriptUserFunctionEvent
TScriptUserFunctionEvent = procedure (
  CP : TObject; const Command : String;
  const Parameter : String) of object; 

Generated when a user function has been encountered in the script.

This event is generated when a user function is encountered in the script. User functions are indicated by a leading '&'. The name of the function will be passed to this event in the Command parameter. This name will be converted to upper case and have the leading '&' removed. Whatever functionality is needed to handle the user function should be implemented in this event.

Refer to the section "User functions and variables" in the printed documentation for more information.

See also: OnScriptParseVariable