Link to this page
Print this page
Parent topic
:
Usage
Prompt for values
/
Usage
PROMPT programming steps
To use the
PROMPT
statement, you must:
Declare a program variable with the
DEFINE
statement.
Set the
INT_FLAG
variable to
FALSE
.
Define the
PROMPT
statement, with dialog control blocks to control the instruction. Use the
FOR CHAR
clause if a single character is to be entered.
After executing the
PROMPT
, check the
INT_FLAG
variable to determine whether the input was validated or canceled by the user.
Related concepts
Variables
INT_FLAG
Example 2: Simple PROMPT with Interrupt Checking