Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Ask

From: thundrebol::yahoo at: 26-Sep-2001 12:30

Hi Ammon-- From your example, it's not clear what you need but... View requires a face object or the result of a layout block. You need to defer calling View until you can supply those args. Ask is reserved for collecting user input from the console window. If you want to gather input from the console and *then* use View to produce an interface, try something like (assuming lyts is defined): result: ask reform ["Which layout; " lyts "?"] lay: layout [ h2 gold "You selected:" content: text black 200 "" ] content/text: result show content view lay If the View engine is already engaged, request-text is the preferred method. Try (again, assuming lyts is defined): lay: layout [ h2 gold "Select a layout" content: text black 200 "Click Ask to continue." button "Ask" [ answer: request-text/title reform [ "Which layout " lyts "?" ] clear content/text content/text: answer show content ] ] view lay The Text Fields How-To doc ( gives some examples of this. HTH, Ed --- Ammon Cooke <[ammoncooke--yahoo--com]> wrote: