User Tools

Site Tools


en:prompt

This is an old revision of the document!


Prompt (Function)

Format

prompt ( prompt )
prompt ( prompt , default_expr)

returns string_expression ==== Description ==== This function displays a message box with an input box and returns a string value of what the user typed in the box. You may set the default value by setting a second string argument. ==== Example ==== <code>a$ = prompt(“What state do you live?”,“KY”) if a$ = “KY” then print “Kentucky.” else print “Somewhere Else” end if</code> draws
Prompt ==== See Also ====

==== History ==== |0.9.9.42|added statement|

en/prompt.1471027646.txt.gz · Last modified: 2020/02/28 10:46 (external edit)