[REBOL] Re: a little help for a newbie?
From: ammon:addept:ws at: 16-Feb-2003 16:46
Hi,
You looking to do something like this?
view layout [
banner "Welcome to REBOL, the heart of the internet"
button "New Window" [view/new layout [banner "This is a new window"]]
]
Notice that adding /NEW to VIEW made a new window to appear, if you
simply used VIEW then the old window would be unviewed and the new one
viewed. If you are looking for dialog to request information from the user,
then you should be using REQUEST. As a new user, the first thing that I
suggest you get aquainted with is the ? function and the ?? function. Both
are very useful for exploring the language from the console.
And for an automagical list of faces
face-list: []
for i 1 10 1 [
append face-list compose [text (join "Face # " i)]
]
view layout face-list
There are many ways that you could do the above task, I chose to use FOR
and a block of numbers but it could be does just as easily with FOREACH and
a block of words.
HTH
Ammon Johnson
CIO of Addept ---------- (www.addept.ws)
435.616.2322 ---------- (ammonATaddeptDOTws)