Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible XMLTOCURSOR bug?
Message
From
30/11/2001 10:34:04
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
30/11/2001 10:21:40
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00587998
Message ID:
00588004
Views:
25
The reason is that you don't have any records in the XML definition and you are not creating the XML with the schema definition. try doing the following:
CURSORTOXML("cTemp","xmlTemp",1,0, 0,"1")
Take note that the xmltocursor will produce the cursor win 1 empty record.

>Hi,
>I´ve had a strange behavior of XMLTOCURSOR function.
>I explain it:
>I comunicate 2 object, passing cursors trough XML, but when I need to send an empty cursor, with the code below, it crashes and gives me C0000005 error.
>
>CREATE CURSOR cTemp (cod N(3), data C(50))
>CURSORTOXML("cTemp","xmlTemp",1,0)
>XMLTOCURSOR(xmlTemp,"cTemp2",0)
>
>Can anyone explain me why this happens?
>
>Thanks in advance,
>Ibai
Alexandre Palma
Senior Application Architect
Previous
Reply
Map
View

Click here to load this message in the networking platform