Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with cursortoxml
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00835135
Message ID:
00835145
Views:
11
Eric,

There's inconsistency between CURSORTOXML() and XMLTOCURSOR() in the way variable for/with XML is passed. For CURSORTOXML() you've to enclosed variable name into quotes. For XMLTOCURSOR you pass variable directly (w/o) quotes. Try
allo = ""
CURSORTOXML("in_cursor","allo",1,0,0,"1","","")
XMLTOCURSOR(allo,"out_cursor",0)
>Sorry Sergey, I did not explain my problem properly:
>I am trying this directly from the command box. So it is realy "allo" that allows me to create the variable allo (I can see it there).
>The problem doesn't seem to be the creation of the variable. It is a problem to get a cursor back from there. It gives me a parser error.
>
>Basically, all I am trying to do is to save a cursor into a variable, return this variable to another function somewhere in my code and then, from this variable, retrienve my cursor.
>
>cursor_in --> cursortoxml into variable allo
>variable allo ---> xmltocursor into cursor_out
>
>abracadabra
>
>
>>You should pass the variable as the first parameter w/o quotes.
XMLTOCURSOR(allo,"out_cursor")
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform