Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning an Array from a Function
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00338850
Message ID:
00338964
Views:
13
Frank,

Try this:

Dimension ArrayOne[20,1]
Dimension ArrayTwo[20,1]
=FuncExample(@ArrayOne) && Passes ArrayOne By reference


Function FuncExample
LParameters laArray
Local laArrayNew
Dimension laArrayNew[20,1]
..
.. && Set laArray elements in function and change value of ArrayOne elements
&& in calling procedure.
..
Return && do not retrun array values. Passing by reference already passed
&& values back.
EndFunc
Ken Wardwell
Previous
Reply
Map
View

Click here to load this message in the networking platform