Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return values
Message
From
07/03/2001 08:00:54
 
 
To
06/03/2001 17:09:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00482246
Message ID:
00482632
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.

Hi Al,

Thanks for this tip. I've noted where to find this in case I ever need it. Which could happen. In this current situation James's idea was exactly what I needed.

Thanks again
Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform