Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning values
Message
De
21/12/2001 14:47:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00597548
Message ID:
00597559
Vues:
15
Hi Rodolfo
myreturnstring = BlaBlaBla(myordernumber)
If myreturnstring is empty an error occur, if not just add the two fields in a single one and get his substr outside of your class

I believe, it will give some new ideas too !!



Claudio


>One more problem... :)
>
>
>Define Class BlaBlaBla...
>Procedure GetOrder
>LParameters m.IdOrder
>Select * From Orders Where IdOrder = m.IdOrder Into Cursor c_Order
>CursorToXml("c_Order","c_OrderXML")
>Return c_OrderXML
>
>
>In this case, I returned just one table (ops... xml).
>
>Now I have to return the Order and the products in it.
>
>
>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! :(
>
>And, there are one more thing: If "m.IdOrder" didn't find, I have to return a error message! :(
>
>I was created three properties to control it: MessageErros, Itens_SML and Product_XML. But I've read about COM and I should pass parameters and returning values... I had never acess properties because it's too slow.
>
>Someone could help me? :)
>
>[]'s
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform