Description: This function returns the code value for the specified statement.
Returns: Statement code value
Usage: Script or Steady State
Format: GetStatement(Location, Index)
Parameters: Location { code value } { required } { no default }
Any expression for the code value which defines the module and state.
Index { numeric } { required } { no default }
Any numeric expression for the statement.
Comments:
Example:
If 1 Check;
[
dest = GetStatement(ActiveState(modPtr), 1);
]
This script gets the first statement in the active state of the module instance pointed to by modPtr.
See Also: