prompt

Prompts for user input.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X   X

Syntax

string prompt(message)
string        message

Description

After message has been displayed on STDOUT, the program waits until the user responds by entering data and pressing [Enter]. The user input is returned.

Notes

If prompt is used within a TRIMapp application, the message and prompt area are placed within a box.

Example

Prompts the user for a response.
field = prompt("Please enter your name ==> ");