Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an array as a reference
Message
From
20/04/2008 14:22:39
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
20/04/2008 14:09:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01311392
Message ID:
01311970
Views:
19
>Ah, I already noted that in original sample I sent. Acopy() also doesn't pass original array's reference.

I think the point Fabio and Sergey are trying to make is - If you return @array it SEEMS / LOOKS like VFP is passing back a reference when VFP is actually ACOPYing the array. That is not obvious and may be confusing.

>Cetin
>
>>The getArrayRef does not return reference to an array but a copy of an array. It's simpler and clearer to use ACOPY() directly.
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform