Name
prompt — Get a string from the user
Usage
Dialogs.prompt(msg, def)
: Stringmsg
: Stringdef
Description
Displays the message msg
and prompts the
user to enter a string. Returns whatever string the user enters or
the default string def
if the user enters
no characters.
Returns
invalid
if either argument can’t be
converted to a string.
Example
Dialogs.prompt("Please enter a number", "17")
Get Learning WML, and WMLScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.