[REBOL] Re: How to show text-list selection?
From: allenk:powerup:au at: 18-Nov-2000 23:03
Hi Raimond,
Here are two ways of doing it. I've used append to better illustrate that
the updated contents of tl2 are being shown.
;Method1: Using tl2/data, this is were the contents of the text-list are
stored
data-block: ["Wilhelm" "Helge" "Werner" "Fritz"]
view layout
text-list data data-block [
append tl2/data value
show tl2
]
tl2: text-list
]
;Method2:
;if there already something in the 'selection block you could do it this way
;(otherwise you will get an error).
data-block: ["Wilhelm" "Helge" "Werner" "Fritz"]
selection: ["Line1"]
view layout
text-list data data-block [
append selection value
show tl2
]
tl2: text-list data selection
]
Cheers,
Allen K