Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning an array
Message
 
 
To
11/11/2002 09:25:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00720959
Message ID:
00720969
Views:
8
In VFP prior version 7 you cannot return array at all. In VFP7 you can but with some limtations. It realy make sense to use in methods only.
In any VFP version you can pass array by reference into function and populate it there.
= UDF(@aSomeArray, para1, para2,...)
>How can I return an Array?
>
>For example:
>
>aSomeArray = UDF(para1, para2,...)
>
>
>
>UDF()
>   LPARAMETERS para1, para2....
>   some code for filling an array...
>   RETURN WHAT????
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform