TApxScript.OnScriptParseVariable

TApxScript

property OnScriptParseVariable : TscriptParseVariableEvent
TScriptParseVariableEvent = procedure (
  CP : TObject; const Variable : String;
  var NewValue : String) of object; 

Generated when a value is needed for a user variable.

This event is generated when a user variable is encountered in the script. User variables can appear any place where a parameter is expected. They are indicated by a leading '$'. The name of the user variable will be passed exactly as it is seen in the script (including the '$'). In this event handler, the value of the user variable needs to be specified in the NewValue. If this value is not specified, the value of the variable will be assumed to be blank.

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

See also: OnScriptUserFunction