Difference between revisions of "MC-Basic:PROMPT"
(Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= PROMPT {''<str_value>''} <, ''var_name1''> { …''<'', ''var_nameN>''} |AVAILABILITY= All versions |DESCRIPTION= This statement takes inf…') |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:PROMPT}} | ||
+ | |||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 42: | Line 44: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:SENDDATA|SENDDATA]] |
}} | }} |
Latest revision as of 09:34, 10 April 2017
Language: | English • 中文(简体) |
---|
This statement takes information you type and stores it in a list of variables. The values of the variables are entered via the SENDDATA command.
<str_value> - String to be printed (option)
<, var_name1> - variable names to be input
<, var_nameN> - variable names to be input
Variable types must match. Otherwise, an error message is returned and you will again be prompted to enter the correct variable types. If multiple variables are required, the respective values entered must be separated by commas. If multiple variables are required and there is an error in one of the inputs, the entire series must be re-entered.
Syntax
PROMPT {<str_value>} <, var_name1> { …<, var_nameN>}
Availability
All versions
Scope
Task
Limitations
The values you enter must be a single-literal values, not expressions.
Examples
Prompt "enter a value",i1