Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLToCursor() problem.
Message
From
11/03/2002 13:29:16
 
 
To
11/03/2002 13:07:42
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00631078
Message ID:
00631098
Views:
29
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
Previous
Reply
Map
View

Click here to load this message in the networking platform