REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: ask

ask  question  /hide

Ask the user for input.

Arguments:

question [series!] - Prompt to user

Refinements:

/hide - mask input with *

See also:

confirm   input   prin   print  

Description

Provides a common prompting function that is the same as a prin followed by an input. The resulting input will have spaces trimmed from its head and tail. The /hide refinement hides input with "*" characters. The function returns a string!.

Example, where the user enters Luke as input:

ask "Your name, please? "
Your name, please? Luke
== "Luke"


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin