PROMPT

The PROMPT statement assigns a user-supplied value to a variable.

4GLREF00000181.gif

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.

  1. GL takes the following actions when it executes a PROMPT statement:

  1. Replaces any variables with their current values.

  2. Concatenates the list of values into a single prompt string. The total length of this string, plus the users response, cannot exceed 80 characters.

  3. 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)..

  4. Waits for the user to enter a value.

  5. 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