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

[REBOL] Re: Re(2): Setting Block Data

From: al:bri:xtra at: 28-Nov-2000 22:41

Anton wrote:
> This is what I just tried (first two lines just the same). > > set-field: func [a v] [do form reduce [to-set-path a v]] > info: [db [[detail "detail one"] [detail "detail two"]]] > set-field "info db 1 detail" #"q"
I don't know what you're trying to do, but isn't this simpler?
>> info: [db [[detail "detail one"] [detail "detail two"]]]
== [db [[detail "detail one"] [detail "detail two"]]]
>> print mold info
[db [[detail "detail one"] [detail "detail two"]]]
>> info/db/1/detail: #"q"
== [detail #"q"]
>> index: 2
== 2
>> info/db/:index/detail: #"q"
== [detail #"q"]
>> print mold info
[db [[detail #"q"] [detail #"q"]]] I hope that helps! Andrew Martin ICQ: 26227169