Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Protected property is italics
Message
De
24/01/2002 17:38:41
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00608655
Message ID:
00610169
Vues:
23
OK let me be David and the other one is Dave. Even though I prefer Dave :-)
Anyway, I agree with your other posted comments. It seems to me a bug. When I first started in VFP I tried using protected and hidden but ran into similar problems. I was always needing to go back and make them public again. It may very well have been this problem. Good to see the problem I reported has been fixed in VFP 7!! (I'm on SP1). The problem that the other Dave was reporting, where here writes in the click event after the command button is on the form still fails. I don't believe it should.


>There's gettin' to be too many Dave's on this thread to know who is talking to who... *bg*
>
>>No they don't :-), but I agree with Dave now. See my other post. If you create a command button class, and in the click method of the class access a protected property or method of the same class at the same level then drop that button onto a form, the click method fails!
>>
>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform