Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can XmlAdapter take a parameter?
Message
 
 
To
06/12/2007 09:59:22
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01273594
Message ID:
01273604
Views:
21
I know that. This is my plan B but I was hoping that there is a more efficient solution directly from XMLAdapter.

Thank you.

>I don't know if XMLAdapter can do that, but you can SELECT ... FROM MyCursor WHERE .... INTO NewCursor and then give it to the XMLAdapter.
>
>>I need to create a bunch of XML files from one cursor (based on a values in a field). Therefore, I was wondering if XmlAdapter can take a parameter to convert to XML only certain records. For example:
>>
>>
>>oXml = CREATEOBJECT("XMLAdapter")
>>oXml.AddTableSchema("MYCURSOR")
>>oXml.ToXML("lcXml")
>>
>>
>>The above code will create an XML string lcXml that will include all records in MYCURSOR. I wonder if I can make the above code only send to lcXml records that match some WHERE clause, like MYFIELD = cMyVar.
>>
>>Thank you in advance for your help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform