ExitStateTable

Purpose

Use ExitStateTable to return to a calling state table when an application calls nested state tables (using InvokeStateTable).


A screen capture of the Action ExitStateTable window

Description

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.

Parameters

The only parameter is the return code, passed to the calling state table to indicate successful completion. The possible values are 0 through 9.

Possible results

ExitStateTable has only one result. It passes a return value to the InvokeStateTable state that called the nested state table.

ASCII syntax

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.