Last modified on 27 October 2012, at 22:18

REBOL Programming/ask

USAGE:Edit

ASK question /hide 

DESCRIPTION:Edit

Ask the user for input.

ASK is a function value.

ARGUMENTSEdit

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

REFINEMENTSEdit

  • /hide -- mask input with *

SOURCE CODEEdit

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