Stop Event |
This event is executed following the Exec Event, to tell the script that the current computation has stopped in a Control or Scripted component. It will only be called after the Start event has been called. This is a good place for cleanup of data, closing any open files, and so on.
The Stop event has no parameters, unlike the Exec event. If you need to access worksheet variables from the Stop event, use the Automation Interface.
It is possible for the Start and Stop events to be triggered one after the other without the Exec event ever being triggered. This can happen in cases where the computation begins but the input data is never available to the script component, preventing it from executing.