Use ExitStateTable to return to a calling state table when an application calls nested state tables (using InvokeStateTable).
The ExitStateTable action is usually the last action executed by a nested state table. It is the equivalent of the CloseEverything action used by the primary state table at the end of an application.
The only parameter is the return code, passed to the calling state table to indicate successful completion. The possible values are 0 through 9.
ExitStateTable has only one result. It passes a return value to the InvokeStateTable state that called the nested state table.
When using an ASCII editor, code this action with the following parameter:
For example:
ExitStateTable(1);
There are no edges for this action. The parameter is described above, under "Parameters". For more information, see Testing a state table using the debugger.