s$ = ConsolePrompt(p$)
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.
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.