Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing array by reference
Message
 
 
To
12/12/2000 13:19:59
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00452362
Message ID:
00452366
Views:
25
>Hi:
>I need some advice re: passing an array by reference. I have added an array to a form that I am working on that needs to be passed to a function held in a utility object (acolscan from the Hackers Guide) that I've created. The calling routine looks like:
>ThisForm.oBCSUtilities.aColScan(@Thisform.aGroup, cClientGroup, 1)
>VFP errors out telling me that Alias Thisform is not found. What am I doing wrong?
>
>TIA
>Mike

Mike,
You can't pass an array property by reference. Copy it to a variable array using ACOPY(), pass it using the @ syntax and copy it back when the call is complete.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform