[REBOL] Re: How do I update a text-list?
From: reboler:programmer at: 17-Apr-2001 16:09
I think I originally tried your second way below, as well.
;didn't work
...addrlist is a text-list with original data...
...
addrlist/****: names-only ; how update a text-list data = ???
show addrlist
...
Where **** = [data lines text texts etc etc etc]
Now,
;this works
...
addrlist/lines: copy names-only
show addrlist
....
Your question is a good one? Why can't you directly change text-list/data?
------Original Message------
From: "GS Jones" <[gjones05--mail--orion--org]>
To: <[rebol-list--rebol--com]>
Sent: April 17, 2001 6:51:44 PM GMT
Subject: [REBOL] Re: How do I update a text-list?
From: "alan parman"
> Thanks a bunch, it does indeed work. I could swear that I tried "/lines"
> and it didn't work. Was this something that changed in View1.0 from the
> experimental versions?
To my knowledge, no. I find it very easy to make mistakes when using the
dialects, like VID.
What I still don't understand is why /data works with append, as in the
following:
view layout [
tl: text-list data ["a" "b" "c"]
button "Change List" [
append tl/data ["new" "values" "for" "you"]
show tl
]
]
but can't be assigned directly, as in the following:
;doesn't work
view layout [
tl: text-list data ["a" "b" "c"]
button "Change List" [
tl/data: copy ["new" "values" "for" "you"]
show tl
]
]
Oh, well.
--Scott Jones