Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning values
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00597548
Message ID:
00597557
Vues:
15
>
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform