Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing array property of an object
Message
 
À
31/03/1999 23:10:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00204115
Message ID:
00204192
Vues:
15
Pass an object reference and the array name. For example I create a moverlist object in my app like so:

oBuilList=CREATEOBJECT('frmmoverlists',THISFORM,'abuilavail','abuilselected')

THISFORM passes the object reference to the form and abuilavail and abuilselected are array properties of my form.

I can then reference the calling forms array like this for example: THISFORM.oRef.&mcavail[1] ***Note the macro substitution because I pass the array names as character strings. HTH

>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,
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform