opset/4—modify the action and arguments of an operation of an event
The opset/4 function modifies the action and arguments of an operation of an event. The syntax for this function is as follows:
opset/4 arguments
Argument | Mode | Type | Description |
---|---|---|---|
$EVENT | Input | OBJECT | Specifies the event for which an operation is to be modified |
$SEQNR | Input | INTEGER | Specifies the sequence number of the desired operation |
$ACTION | Input | STRING | New action name of the operation |
$ARGS | Input | STRING | New arguments for the operation action |
Use the opset/4 function to replace the action name and arguments of operation $SEQNR that is attached to event $EVENT. The action name is replaced with $ACTION, and the argument list is replaced with $ARGS.
Operations are numbered, starting from 1 for the oldest operation. The most recent operation can be obtained by indicating 0 as the sequence number $SEQNR.
To determine the number of operations attached to an event, see opcnt-2-count-the-operations-of-an-event.
opset/4 example