When a prompt statement's panel closes, named variable Prompt Chosen Button describes the reason for the closure.
The Prompt Chosen Button named variable can have the following values:
- 1, 2, 3, 4
- The number of the button (right to left) which closed the panel. If named variable Prompt Menu Item Reference is not -1, a menu associated with the button caused the exit. When not -1, the Prompt Menu Item Reference named variable will either be an index into a text based menu or a directed path to a container based menu. See Prompt Menu Formatting for additional information.
- -1
- The panel was closed by a checkbox configured to exit. See Advanced Prompt Statement Functionality for additional information.
- -1000
- A Cancel button was configured to Exit. See Configuring Buttons on Prompt Statements for additional information.
- other
- One of the following holds:
- A Prompt from Container statement was exited by clicking on a multi line editor icon configured to do so. See the Providing Multi Line Editor Access topic in the Prompt from Container documentation for additional information.
- A menu item in a container based menu had an non zero exit value. See Prompt Menu Formatting for additional information.