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

[REBOL] forever loops inside view

From: caw::cs::mu::oz::au at: 24-May-2001 7:21

I want a forever loop to start once a ui is viewed. How can I start the loop from "outside" the view. l: layout [ button "Go" [go] ] go: func [] [ forever [ print now/time wait 1 ] ] view l and then push the "Go" button works, but I want the loop to start automatically, without the user needing to do anything. btw, am I right in suggesting that face variables scope to the top level: l: layout [ t: text "Fred" ] t/text: "Bill" seems to work...what are the scoping rules for face variables? cheers and thanks! chris wright