Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning multiple values form a function
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00365646
Message ID:
00365718
Views:
14
>OOPS.. thought we were talking about returning multiple variables from a FORM... but still, returning a string and parsing will work.
>
>Also, in reference to the arguments about an array not being in the right scope (ie its created in the function and then when you try to pass it back it is gone so you only get the first element), why not create the array outside the function and pass it by reference and then return it back again (@laArray[])? Just a thought.

That's fine also. But if the array is declared PRIVATE in the calling program or higher, you don't have to pass anything, just reference it. I'm sure there's a lot of personal preference here that will determine how each individual would implement this. :-)
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform