Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing a parent's object
Message
De
27/08/2007 18:04:35
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01250681
Message ID:
01250797
Vues:
16
>>>>>this.oxHandler = CREATEOBJECT( "EMPS_Handler_Medinotes_Class" )
>>>>
>>>>Ok, syntax aside, that would be a logical approach to this, right?
>>>
>>>I guess we need to step back and re-check your requirements again.
>>>
>>>Do you want to access an oSock object from oHandler? If yes, I still don't see a good way to do it, need to think more.
>>
>>Yeah, I just tried creating oHandler from inside oxServer and it still does not have a .Parent value. I don't get that. How can it be a child and not have a parent? Does it matter where/when I create it inside oxServer? I really thought this would work.
>
>No, see our responses in your other thread. You can not add a new object, you only can add a reference to an object. Therefore you can not access the "parent" object from that reference.

I obviously did not understand the "reference" part of all that. I wish I understood why this doesn't work.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform