Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an array as a reference
Message
From
18/04/2008 13:52:40
 
 
To
17/04/2008 13:02:28
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:
01311744
Views:
17
>>I get a syntax error on both of these. The array is a property of the form.
>>
>>
>>	.oTrans.SetFormUDF(THIS, @laFormPoints)
>>	.oTrans.SetFormUDF(THIS, @.laFormPoints)
>>
>
>You can't pass that way. You either need a method returning reference to array in your class

Hi Cetin,
VFP Doesn't return a property array by reference in the RETURN @ line, it copy the property array into a variable array as ACOPY().

The VFP have a bug here:
return an object's property array by reference cannot copy the array into an array property.

>or create another copy with acopy() and pass that one.
>Check return in help for a sample.
>Cetin
Previous
Reply
Map
View

Click here to load this message in the networking platform