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

[REBOL] Re: view indirection

From: sterling:rebol at: 20-Nov-2001 10:13

Here's another option: Make a list of the checkboxes either directly: checks: reduce [c1 c2 c3 c4 ...] or iteratively: checks: copy [] repeat x 16 [append checks to-word join "c" x] reduce checks Now when you need to access one: set-check: func [n [integer!]] [ checks/:n/data: true show checks/:n ] Or to just improve on what you've got below: set in wrd: get to-word join "c" n 'data true show wrd The only thing you really need to build dynamically is the word to reference the checkbox. The rest of the REBOL code can stay as REBOL code. Sterling