Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Array as Parameter
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00005709
Message ID:
00005719
Views:
30
>if the array is a property in an object, you'll need to do the following
>declare paTempArray[alen(this.array)]
>=acopy(this.array,paTempArray)
>RetVal = MyFunction(@paTempArray,...)
>
>just say lparameters aPassedArray1, aPassedArray2, cOtherValue. in this >code, aPassedArray1 references the array paTempArray in the calling

Thanks a million, that works great.

>program. of course, when you're done, you'll have to make the changes to >this.array from paTempArray....

Fortunately I am just using the array to feed a formula and return a single value; the original array doesn't change.

John Morrison
"Not everything that counts can be counted,
and not everything that can be counted counts"
-A. Einstein
Previous
Reply
Map
View

Click here to load this message in the networking platform