INPUT

INPUT provides a means for prompting the user for numeric or text data when the macro is run.

Syntax:

INPUT "Prompt String" , variable
INPUT variable
INPUT "Prompt String" , string_variable$
INPUT string_variable$
 

Discussion:

The variable may be any valid variable name. If the variable name is a string variable, then the input will be interpreted as a literal string; otherwise, as a numeric. The INPUT command will use a "?" prompt if no prompt string is supplied. The prompt is always displayed on the screen, and the input always is accepted from the keyboard only. The prompt string cannot exceed 200 characters in length.

Example:

INPUT "Enter value for x:", x
PRINT "X = ", x
INPUT "Enter a value for A$:", A$
PRINT A$

Next: