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:
00797532
Vues:
10
Would
this.oContainer = This.Parent
work for you?

>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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform