Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning values
Message
From
21/12/2001 14:47:36
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00597548
Message ID:
00597559
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform