PROMPT
The PROMPT statement assigns a user-supplied value to a variable.
key is a keyword to specify an activation key:
number is a literal integer to specify a Help message number.
response is the name of a variable to store the response of the user to the PROMPT
character string. This cannot be of data type BYTE.
statement is a 4GL statement.
string is a quoted string that 4GL displays on the Prompt line.
- ariable is the name of a CHAR or VARCHAR variable containing a message to the user,
typically prompting the user to enter a value.
- GL takes the following actions when it executes a PROMPT statement:
- Replaces any variables with their current values.
- Concatenates the list of values into a single prompt string. The total length
of this string, plus the users response, cannot exceed 80 characters.
- Displays the resulting string on the Prompt line of the current form (or in
the Line mode overlay, if it currently covers the Application window)..
- Waits for the user to enter a value.
- Reads whatever value was entered until the user presses RETURN, and then
stores this value in response variable.
The prompt string remains visible until the user enters a response.
References
DISPLAY
DISPLAY ARRAY
INPUT
INPUT ARRAY
OPEN WINDOW
OPTIONS