Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Protected property is italics
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00608655
Message ID:
00609460
Vues:
22
First, an SCX form does not have visibility for properties (I believe everything is public, if you add a property to a vcx form the visibility drop down box is missing). Only on a VCX form can you set a form property to protected.

Take, for example, a command button on a form. We all agree that a form method cannot access the protected property of the command button and a command button method cannot access a protected property of the form.

But why can't the command button method access the protected method of the command button?

Understand that this only applies to objects dropped on a form. In a subclass defined in a PRG or VCX the regular inheritance rules apply.

-Dave


>Dave & David,
>
>Your two statements completely agree with one another...
>
>>>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?
>>
>>No. An object on the form cannot access its own protected properties. For example, code inside click method cannot access this.protectedproperty.
>>
>>
>>-Dave
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform