Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a NewObject() determine it's Container?
Message
De
06/06/2003 19:27:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00797529
Message ID:
00797538
Vues:
11
Sorry Sergey,
When I use NewObject, the new object doesn't have a parent.
If you're getting something different, please let me know how you do it.


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

Click here to load this message in the networking platform