Seems that it is assuming a value of 1 to be .T. - I have stored the value to two decimal places and it works. So, revised question, how can you stop this conversion when you are actually working with a interger value of 1 ?
Thanks.
-=Gary
>Hi Everyone!
>
>I have used for the first time CursorToXML to do just that, and XMLToCursor to recreate the cursor.
>
>In the translation back to a cursor, the first field, nRecno, originally having a numeric value of 1 (see below for XML fragment)
>
>
><nrecno>1</nrecno>
>
>
>is being converted to .T. in the in the nRecno column of the new cursor.
>
>In the CursorToXML call, I am simply stating the following :-
>
>
>Cursortoxml('csrCandidates', 'cXml')
>
>
>in the receiving object with its own private datasession, I am stating the following :-
>
>
>Xmltocursor(m.cXMLIn, 'csrCandidates')
>
>
>
>Any ideas why 1 is getting converted to .T. ?
>
>Win2000 SP2, VFP7 SP1.
>
>Thanks.
>
>-=Gary
-=Gary