EVENT action
Related pages:
EVENT eventIdent [(pubLoc1=param1, pubLoc2=param2, ... , pubLoc10=param10)] [ASYNC]
eventIdent | in | Identifier of a Event type object. |
pubLoc1, pubLoc2, ..., pubLoc10 | in | Local variables of PUBLIC type in the called event, the specified parameters will be assigned to. |
param1, param2, ..., param10 | in | Local variables - their values will be assigned to the local variables of PUBLIC type. |
Without the key word ASYNC, the subscript is to be started synchronously. The action EVENT is terminated after the subevent termination. Values of PUBLIC local variables are to be assigned to the called event (IN OUT parameters in principle). If the called event is terminated by an error, the calling event is not terminated and continues in the execution of next action.
For asynchronous calling an event (the key word ASYNC), the calling event doesn't wait for the termination of the running event.
When you using local variables of RECORD type, it is necessary that the types of the variables must be the same in the called and calling events, in regard to the NOALIAS attribute.
;script that calls BEGIN MESSAGE "script began" ON srvskol1v.HIP EVENT E.podevent ASYNC MESSAGE "script ended" ON srvskol1v.HIP END
;called script "E.podskript" BEGIN MESSAGE "subscript began" ON srvskol1v.HIP DELAY 200[ms] MESSAGE "subscript ended" ON srvskol1v.HIP END
;script that calls BEGIN MESSAGE "script began" ON srvskol1v.HIP EVENT E.podevent MESSAGE "script ended" ON srvskol1v.HIP END
;called script "E.podskript" BEGIN MESSAGE "subscript began" ON srvskol1v.HIP DELAY 100[ms] MESSAGE "subscript ended" ON srvskol1v.HIP END
Related pages:
Pridať komentár