ASK: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Syntax == ASK S/N/T,"prompt string",variable == Description == This command is used to prompt user for a keyboard input. The user can type a string or number. The ASK command is followed by either S to indicate a string, N to indicate a numeric value or T for a time value. The prompt string can be up to 70 characters in length. The response from the user is placed into the variable specified at the end of the command. == Example == ASK N,"How long should the lamp...") |
|||
| Line 19: | Line 19: | ||
* [[INKEY]] | * [[INKEY]] | ||
* [[INKEY$]] | * [[INKEY|INKEY$]] | ||
* [[GET]] | * [[GET]] | ||
* [[GET$]] | * [[GET|GET$]] | ||
[[Category:Reference]] | [[Category:Reference]] | ||
[[Category:Procedure]] | [[Category:Procedure]] | ||
Revision as of 19:14, 6 October 2023
Syntax
ASK S/N/T,"prompt string",variable
Description
This command is used to prompt user for a keyboard input. The user can type a string or number. The ASK command is followed by either S to indicate a string, N to indicate a numeric value or T for a time value. The prompt string can be up to 70 characters in length. The response from the user is placed into the variable specified at the end of the command.
Example
ASK N,"How long should the lamp be on for ?",reply SWITCH ON OUTPUT 1 WAIT reply