Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Multiple Values From a UDF
Message
From
21/01/2005 10:57:53
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00979276
Message ID:
00979290
Views:
19
Switch to using parameter objects instead of parameters. This will give you multiple advantages. 1) being able to pass far more parameters at once 2) the called code can update all of the parameter object's properties 3) the called code can create new properties to pass back 4) the property names make the code easier to read than using positional numbers as would be required with an array or mlines.

>To All:
>IS there a way in VFP to return multiple values from a User Defined Function? I don't want to use an Array, then I have to pass by reference and I am trying to avoid that. I have thought about casting and concatenating the values to a single string then returning that and parsing it when needed but I know there has to be a 'cleaner' way to accomplish this.
>
>Thanks!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform