Application icon

Prompt Chosen Button Values

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.

-1001
A Prompt for File or Folder statement with the Drag panel and Exit on drag options set has been executed. When something is dragged to the drop image, the panel will close and -1001 will be set as the chosen button.

other
One of the following holds: