Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing an array as a reference
Message
De
18/04/2008 13:52:40
 
 
À
17/04/2008 13:02:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01311392
Message ID:
01311744
Vues:
18
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform