REBOL Programming/ask

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

ASK question /hide 

DESCRIPTION:[edit]

Ask the user for input.

ASK is a function value.

ARGUMENTS[edit]

  • question -- Prompt to user (Type: series)

REFINEMENTS[edit]

  • /hide -- mask input with *

SOURCE CODE[edit]

ask: func [
    "Ask the user for input." 
    question [series!] "Prompt to user" 
    /hide "mask input with *"
][
    prin question 
    trim either hide [input/hide] [input]
]