Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Passing object properties by reference
I have created a container sub-class which has an array property. I want to pass a reference to this array to a method in an embedded object. However, when I try to use the @ to reference the source array it doesn't work. For example,
this.parent.lstSelected.SetRowSource(@this.parent.aInitialList)
...does not work, but this does:
acopy(this.parent.aInitialList, aTempArray)
this.parent.lstSelected.SetRowSource(@aTempArray)
Unfortunately this creates other problems and I'm trying to keep the code as simple as possible anyway.
Q: Does anyone know how to pass an object property by reference?
Thanks.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement