Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing property arrays by reference
Message
From
19/07/2001 13:01:18
 
 
To
19/07/2001 12:44:46
Del Despain
Colorado Plateau Associates
Hurricane, Utah, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00532698
Message ID:
00532707
Views:
11
>How do you pass an array property by reference to a function (or can you)?
>
>For example, the following does not work:
>
> dothis(@oForm.aArray)
>
>
>Thanks!
>
>Del

You have to ACOPY() it out first.
e.g.
Dimension laPassThisArray(ALen(oForm.aArray,1), ALen(oForm.Array,2))
ACopy(oForm.aArray, laPassThisArray)
dothis(@laPassThisArray)
You should add some sort of check for single dimension arrays vs. two dimensional arrays, but you get the idea.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform