Was this helpful?
Prompt Statement
This statement displays a message in a pop-up window and accepts input from the application user.
This statement has the following syntax:
variable = prompt varcharstringexpr;
The prompt statement causes the application to request input from the user. It displays a character string message on the screen, accepts the input from the user, and places the user's response into a designated variable.
The prompt is displayed in a pop-up window centered in the calling frame. This pop-up window covers the calling frame until the user acknowledges the prompt.
For information about other ways to prompt users, see the descriptions of the ReplyPopup (see ReplyPopup Method) and FilePopup (see FilePopup Method) methods defined for the ProcExec class.
For more information about the prompt statement, see the Programming Guide.
Parameters--Prompt Statement
This statement has the following parameters:
variable
Specifies the name of a varchar variable to which the user's response is assigned. If the response is longer than the variable, OpenROAD truncates the response on the right.
varcharstringexpr
Specifies the message to be displayed. This message must be a varchar expression with a maximum length of 2000 characters.
Examples--Prompt Statement
Prompt for a report name and place the response in the answer variable:
answer = prompt 'Enter the report name: ';
Prompt the user for the department of the person whose name appears in the fname and lname fields:
answer = prompt 'Enter the department for ' + fname
+ ' ' + lname;
Last modified date: 06/25/2024