Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing array property of an object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00204115
Message ID:
00204179
Vues:
18
>Hi all,
>
>Has anyone figured out the right syntax for passing an array property or an object to a function or method?
>
>All of these give me a syntax error, and I am out of ideas:
>
>@.aArray
>@this.aArray
>@thisform.thisobject.aArray
>@(.aArray)
>@(this.aArray)
>@(thisform.thisobject.aArray)
>
>TIA
>
>Regards,

In addition to Barbara's suggestion, you could also make a custom object whose only property is an array. You could write some methods for sizing, adding, deleting the elements. This object can then be passed to functions. Short of that, you're pretty much left with copying the property array to a local one, passing that and then copying any changed results back to the property array.

Steve
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform