Rebol Programming/ask

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

USAGE:[edit | edit source]

ASK question /hide 

DESCRIPTION:[edit | edit source]

Ask the user for input.

ASK is a function value.

ARGUMENTS[edit | edit source]

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

REFINEMENTS[edit | edit source]

  • /hide -- mask input with *

SOURCE CODE[edit | edit source]

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