[REBOL] Re: Newbie Q: Modifying Text-List
From: greggirwin:mindspring at: 20-Oct-2002 13:05
Hi Bruno,
<< the text list is not updated after the second added item.
this script works fine without "bbl: sort unique bbl".
Anyone could give me a hint ? >>
Your text list is referencing the original *value* of bbl. When you use
UNIQUE, it generates a new *different* value which, while still referenced
by the word bbl, is not referenced by text-list/lines (which is still
looking that the original value). If you reset the reference for the
text-list after changing the data, all is well.
bbl: [ "a" "b" "c" ]
view layout [
button "Add" bold
[ repend bbl copy t1/text
cl/lines: bbl: sort unique bbl
show cl
]
t1: area 340x280
cl: text-list data bbl
]
HTH!
--Gregg