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

[REBOL] Compose iterated fields with different names for each

From: info::id-net::ch at: 11-Jan-2002 10:50

I composed a part of a layout with different fields. Those fields are produced if a condition is true. So that's why I want a name for each of them. The names should be fldmodif1, fldmodif2, fldmodif3, etc., to see if the user change them when he will press a button. I used the append exemple-layout REDUCE COMPOSE/DEEP to make it in a boucle of 'for. Like that : for e 1 6 1 [ text8: join first tran ["-" ghi] coor: 243 + (70 * e) coor: to-pair (join coor "x107") append inform-disp reduce compose/deep ['at (coor) fldmodif1: 'field 40x22 (text8)] ] You noticed that it that example the name is fldmodif1. But i cant, using reduce compose/deep, produce a fldmodif (e) without having an error. I tried to produce a string first and then append it to the inform-box. But it doesnt work too. text567: join "at " [coor " fldmodif" e ": field 40x22 " text8] print text567 append inform-disp reduce compose/deep [(text567)] How can i make it ?? Philippe Oehler