Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XMLToCursor() problem.
Message
De
11/03/2002 13:29:16
 
 
À
11/03/2002 13:07:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00631078
Message ID:
00631098
Vues:
30
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform