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

[REBOL] Re: string to object - was: Ask

From: greggirwin:starband at: 28-Sep-2001 1:42

<< I do have a *cure*: get-path-obj: func [str [string!]][ return-val: copy[] tmp-val: parse copy str "/" for i 1 ((length? tmp-val) - 1) 1[ append return-val [ get in ] ] append return-val [ get ] foreach val tmp-val[ append return-val compose [ to-word (:val)] ] return do compose return-val ] >> *You* are my new best friend! I'm going to play with this some more but it looks like it'll do what I want, in which case I hope the reason I want it turns into something useful. :) THANK YOU! THANK YOU! THANK YOU! --Gregg