|
OnSend / OnReceive Event Procedures |
|
|
Docklight Scripting supports two dedicated procedures that are called by the Docklight Scripting engine before transmitting a new Send Sequence or after detecting a Receive Sequence.
The procedures can be defined anywhere in the script code at module-level (not within a class). See Send Sequence Data Manipulation for an example.
NOTE: The DL_OnSend() and DL_OnReceive() code is only executed while the script is running. Sending a Send Sequence does not automatically execute the related DL_OnSend() code. The script must be started manually using the menu Scripting >
NOTE: DL_OnSend() and DL_OnReceive() events are queued and can be processed at a later point. See Timing and Program Flow for more information.
TIP: If your script consist only of the DL_OnSend() and DL_OnReceive() procedures and nothing else, use a simple endless loop at module-level to prevent the script from terminating immediately. See the Send Sequence Data Manipulation example.
|