Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing property arrays by reference
Message
From
19/07/2001 17:18:40
Del Despain
Colorado Plateau Associates
Hurricane, Utah, United States
 
 
To
19/07/2001 13:01:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00532698
Message ID:
00532870
Views:
12
>>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.

That's what I was doing, but I thought maybe there was some direct way of doing it that I was missing.

Thanks!

Del
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform