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

[REBOL] Re: Programatically creating layouts

From: g:santilli:tiscalinet:it at: 9-Sep-2002 21:55

Hi Andy, On Monday, September 9, 2002, 7:02:02 PM, you wrote: AF> My question today is one relating to variable scoping, basically. Then you'll be a bit surprised, when you'll discover that the concepts of "variable" and "scoping" don't make much sense with REBOL. :-) However, your problem can be solved without having to discuss variable scoping at all. ; channel was missing in your example, i think. I just added ; a dummy item... test_list: [channel "name of title" 00:30 ] mygrid: [style btn button with [grid-offset: none grid_time: none] ] grid_count: 0 foreach [channel title time ] test_list [ ;append mygrid "bn-01" ?? append mygrid 'btn append mygrid title append mygrid 'with append/only mygrid compose [grid-time: (time)] ] grid-f: layout mygrid Here I get: == [style btn button with [grid-offset: none grid_time: none] btn "name of title" with [grid-time: 0:30]] which I think is what you wanted to do. It can be done in other ways too, but I didn't want to change your original too much, in the hope that it can be a little more understandable this way. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r