Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return values
Message
From
06/03/2001 17:09:25
 
 
To
06/03/2001 11:38:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00482246
Message ID:
00482484
Views:
10
>>>Hi All,
>>>
>>>Is it possible to return multiple values from a procedure. To get 1 value I do:
>>>
>>>myvalue = myprocedure(myparams)
>>>
>>>Is there a way to get more that 1 return value? If so, how?
>>>
>>>TIA
>>>Mike
>>
>>Mike,
>>No you can't. Another suggestion would be to return a singular parameter object with as many properties as you needed to return the values you needed.
>
>Hi larry,
>
>This is along the lines of what James had said. I've gone with that.
>
>Thanks for responding
>Mike

Actually, what James proposed is nothing like a parameter object. Take a look at Fred Taylor's FAQ http://www.levelextreme.com/wconnect/wc.dll?UniversalThread~?2,33,Forum=5,29,517 for an idea of its capabilities.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform