Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorToXml and BinToC strings
Message
 
 
À
31/03/2002 03:26:30
Jean-Pierre Overbeek
New Limit Database Solutions
Amsterdam, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00639151
Message ID:
00639272
Vues:
39
This message has been marked as the solution to the initial question of the thread.
< snip >
Hi Sergey,
>Sorry, but I got here a return value of -1.6085E+9!!!!


Sorry, try this
create cursor curTest (cKey c(4) nocptrans, iKey i)
insert into curTest values (BinToC(1),1)
ALTER TABLE curTest ALTER COLUMN cKey M NOCPTRANS
lcXml=''
CursorToXML('curTest','lcXml',1,0,0,'1')
XMLToCursor(lcXml,'curTest1')
? curTest1.cKey, CToBin(curTest1.cKey), curTest1.iKey
>The cKey value is stored as gAAAAq== in the XML.

The binary data has to be encoded in order to be included in XML. It'll be decoded by XMLTOCURSOR(). I don't know why CURSORTOXML() doesn't encode character/binary field but only memo/binary. It seems like a bug to me.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform