Link to this page
Print this page
Parent topic
:
Using simple prompt inputs
Prompt for values (PROMPT)
/
Using simple prompt inputs
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