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

[REBOL] Re: sorting a serie ....

From: maximo:meteorstudios at: 19-Jun-2003 11:24

ah, but here you can stumble upon a very bad proble... one that took me a few days to understand. using compose will bind the word at that time. if you just this: lbls: ["a" "b" "c"] gblval: "YIPpE!" vidblk: copy [] foreach lbl lbls [ append vidblk 'button append vidblk lbl append/only vidblk [ print [lbl gblval] ] ] gblval: "DAMN IT!" view layout vidblk pressing on any button, will actually always print "c YIPpE!" lbls: ["a" "b" "c"] gblval: "YIPpE!"now try this: vidblk: copy [] foreach lbl lbls reduce [ append vidblk 'button append vidblk lbl append/only vidblk reduce [ print [lbl gblval] ] ] gblval: "DAMN IT" view layout vidblk -max ----------- meteor Studios, T.D. ----------- Strong enough for a man, but made for a woman