opget/6—retrieve an operation of an event
The opget/6 function retrieves an operation of an event. The syntax for this function is as follows:
opget/6 arguments
Argument | Mode | Type | Description |
---|---|---|---|
$EVENT | Input | OBJECT | Specifies the event for which to retrieve an operation |
$SEQNR | Input | INTEGER | Specifies the sequence number of the desired operation |
$TIME | Output | INTEGER | Time stamp of the operation |
$AUTHOR | Output | STRING | Author of the operation |
$ACTION | Output | STRING | Action name of the operation |
$ARGS | Output | STRING | Arguments for the operation action |
Use opget/6 function to obtain operation $SEQNR that is attached to event $EVENT. The time stamp is returned in $TIME, the author is returned in $AUTHOR, the action name is returned in $ACTION, and the argument list is returned in $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.
opget/6 example