Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning values
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00597548
Message ID:
00597557
Views:
13
>
>Define Class BlaBlaBla...
>Procedure GetOrder
>LParameters m.IdOrder
>Select * From Orders Where IdOrder = m.IdOrder Into Cursor c_Order
>CursorToXml("c_Order","c_OrderXML")
>Select * From Products Where IdOrder = m.IdOrder Into Cursor c_Products
>CursorToXml("c_Products","c_ProductsXML")
>Return ????????
>
>
>I don't know how do it! :(
>

There are several ways to do it; you can concatenate the two strings and parse them out on the other side, or rather than using a flat XML cursor, you can construct a hierarchical document with the DOM - it's slower, but it can reflect the entirety of a schema in a string that can be parsed cleanly.

>And, there are one more thing: If "m.IdOrder" didn't find, I have to return a error message! :(
>

And why can't you build an XML document that contains the error message?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform