[REBOL] Re: Comparing path!
From: greggirwin:mindspring at: 30-Aug-2002 12:18
Robert, Scott, et al
<< I couldn't get Gregg's to work; maybe I misunderstand its use; maybe I'm
not reading carefully enough again! Very common theme...>>
Sorry I didn't provide a usage example. Let me know if the following example
helps.
--Gregg
>> path-from-dlm-string: func [string dlm /local result] [
[ result: make path! none
[ foreach item parse/all string dlm [
[ append result to word! item
[ ]
[ result
[ ]
>> test: [type contact/company]
== [type contact/company]
>> text: "contact_company"
== "contact_company"
>> (select test 'type) = path-from-dlm-string text "_"
== true