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

[REBOL] Setting block data

From: mike::yaunish::home::com at: 21-Nov-2000 18:22

I am trying the following: info: [ db [ [ detail "detail one" ] [ detail "detail two" ] ] ] set-field: func [ apath [path!] v ] [ do [ to-set-path reduce [ :apath 'detail ] :v ] ]
>> set-field 'info/db/1 "newdata"
== "newdata"
>> info
== [ db [ [detail "detail one"] [detail "detail two"] ] ] I was hoping to change the value assigned to info/db/1/detail . Does anyone have any ideas? Mike Yaunish [mike--yaunish--home--com]