Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorToXml and BinToC strings
Message
 
 
To
31/03/2002 03:26:30
Jean-Pierre Overbeek
New Limit Database Solutions
Amsterdam, Netherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00639151
Message ID:
00639272
Views:
37
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform