Information générale
Catégorie:
Programmation Orientée Object
>>When you drop your class on the form you are in effect creating a subclass and you can override PEMs. Any code you add to this instance ...
>
>Notice how you used both "subclass" and "instance" to refer to it. It can't be both, but yet it is.
>
>> Any code you add to this instance can access the protected property.
>
>No it can't! Thats my point. Add code to the click method of the object on the form and you will see that it won't work.
>
>Try
>WAIT WINDOW This.myproperty
>
>
>-Dave
PMJI,
An object on a form can't access a protected property of the form. Only methods in the form class itself can.
Is that the problem?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement