General information
Category:
Coding, syntax & commands
Title:
CursorToXml and BinToC strings
Hi,
Is it possible to use the new XML functions with strings generated by BinToC?
I have a cursor with concatenated foreign key values (BinToC(iKey1)+BinToC(iKey2) as cKey). Now I would like to store the cursor as XML, and convert it back, but the low ASCII characters generated by BinToC are not stored correctly. Using the WestWind class wwXml generates the XML correctly, but I get an error in wwXml.XmlToCursor.
What are the correct parameters for XmlToCursor?
create cursor curTest (cKey c(4), iKey i)
insert into curTest values (BinToC(1),1)
lcXml=''
CursorToXML('curTest','lcXml',0,0+16,0,'1')
? lcXml
delete from curTest
XMLToCursor(lcXml,'curTest')
? curTest.cKey, CToBin(curTest.cKey), curTest.iKey && Output €, 2105376, 1 :-(
TIA
Happy Easter,
Jean-Pierre
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only