>>>>Is there a function in VFP that will work to replace a string between two delimits? Just as STREXTRACT() allows to extract between two delimits, to write the changed string back.
>>>
>>>Can you provide more details?
>>
>>I am trying to create a procedure/routine that will be used to change a "record" in an XML file. I can load xml into a cursor (using XMLTOCURSOR). Then user will have a chance to make changes to this "record" and I need to save it back to the XML. Hence I need a way to replace the old "record" with the new one.
>
>Maybe I'm missing something but wouldn't CURSORTOXML() do it for you?
It should. Funny thing is that I realized that as I was writing the reply to you I wrote "XMLTOCURSOR". Yet as I was drafting this feature - in my head - I was using STREXTRACT() to "get" the record. Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham