Name
ConsolePrompt -- read user input from console (V8.0)
Synopsis
s$ = ConsolePrompt(p$)
Function
This function can be used to prompt the user to enter a string in the console. ConsolePrompt() will present the string specified in p$ as the prompt and halt the script's execution until the user has entered a string and confirmed his input using the RETURN key. The string will then be returned by this function.

Inputs
p$
prompt to present to the user
Results
s$
string entered by user
Example
name$ = ConsolePrompt("What is your name? ")
age$ = ConsolePrompt("And your age? ")
home$ = ConsolePrompt("Where do you live? ")
ConsolePrint("Your name is", name$, "and you are", age$,
           "years old and live in", home$, "!")
The code above demonstrates the usage of the ConsolePrompt() function.

Show TOC