Thanks. I found it.
>Debra,
>
>Your parameters in AT function are switched.
>See
>
http://msdn.microsoft.com/en-us/library/h0zw37w7.aspx>
>You need
>
> lnPosition = AT([fieldname="ADDRESS"],lcstring)
>
>>I decided to bring the data in my xfdf file into my app using lcstring = filetostr(nys.xfdf)
>>So now lcstring has all the data.
>>
>>
>>I wrote a parsing routine to find a field, fieldname="ADDRES", remove the value of this field and replace the value with tccursor.address.
>>
>>Then I use strtofile(lcstring, nys.xfdf) to update the xfdf for display in my app using the adobe reader.
>>
>>
>>**********************************************************************
>>Everything seems to be working except the parsing.
>>
>>I use lnposition = AT(lcstring, fieldname="ADDRESS") to find the address field.
>>
>>lnposition is coming back 0.
>>
>>The len of lcstring looks good and the contents of lcstring looks good, too.
>>
>>Do you know what the problem is here?
>>
>>**********************************************************************
>>
>>
>>>Neither displays XML correctly for different reasons. Why not use VFP MODIFY FILE command?
>>>
>>>
>>>>If I open the file in the internet explorer, I see the dashes.
>>>>
>>>>If I open the file in the notepad, it looks like this:
>>>>
>>><snip>