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

[REBOL] Re: getting dynamically to object word ...

From: g:santilli:tiscalinet:it at: 23-Jan-2003 17:19

Hi Petr, On Thursday, January 23, 2003, 2:33:43 PM, you wrote: PK> let's suppose I have dynamically generated UI ... now I need to create PK> some function to iterate thru UI elements and get their values. I found PK> following way works, but I have two questions ... PK> for i 1 7 1 [for j 0 4 1 [print do join 'fld [i j "/text"]]] PK> I simply have fld10, fld12, fld13, fld14 .... fld74 ... You could iterate in the pane that contains the fields, instead of giving them a name (and using up a precious word :-). Or, if your fields are too much "scattered" in the pane, you could do something like: fields: [] layout [ ; ... tmp: field ; ... do [append fields tmp] ; ... ] so that you will have all of your fields in the FIELDS block. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r