opget_action/3—retrieve the action name of an operation of an event

The opget_action/3 function retrieves the action name of an operation of an event.  The syntax for this function is as follows:

$ACTION=opget_action($EVENT,$SEQNR)

opget_action/3 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

$ACTION

Output

STRING

Action name of the operation

Use the opget_action/3 function to obtain the action name of operation $SEQNR that is attached to event $EVENT and return the value in $ACTION.

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_action/3 example

$ACTION=opget_action($E,0);
Was this page helpful? Yes No Submitting... Thank you

Comments