TApxScript.OnScriptFinish

TApxScript

property OnScriptFinish : TScriptFinishEvent
TScriptFinishEvent = procedure(
  CP : TObject; Condition : SmallInt) of object;

Generated at the end of the script.

This event is generated when the end of the script file or script list is reached and there are no more script commands to execute. It is also generated if the script encounters a fatal error during processing.

If an application dynamically creates a TApxScript component it should not free that component, or any component that the script uses, during this event. Instead, it should set a flag or post a message to itself noting that the script component can safely be destroyed at some later point in the program.

See also: InProgress