Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a NewObject() determine it's Container?
Message
 
 
À
06/06/2003 19:07:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00797529
Message ID:
00797542
Vues:
15
Bill,

Not sure about AddProperty, but in case of NewObject you can do:

wait window this.parent.name

>When I use NewObject, can the object created determine what container it was created in?
>
>
>MyObj.method()
>  this.addproperty('oNewObject')
>  this.oNewObject('myClass')
>Endproc
>
>define class myClass ....
>  procedure find_container
>    this.oContainer = ??????   && finds MyObj
>  endproc
>
>
>TIA
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform