Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Protected property is italics
Message
De
24/01/2002 18:00:20
 
 
À
24/01/2002 08:58:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00608655
Message ID:
00610182
Vues:
22
Steve,
I don't blame you. There are so many different ways of looking at this. Lewis Carroll stuff indeed. And two Daves to top it off!

Lewis Carroll knew about objects before they were invented..
He wrote something like "What's that song?" says one. "Do you mean the name of the song, the title of the song, or just what it is called?" says the other.

Now we have the name of the object, it's caption, and the (variable) name given to it when actually used. :-)


>I feel like I've stepped into Alice in Wonderland *grin*. Dave says you can't, then you say "You're right, you can".
>
>I'm going to have to play with it to make sure I'm on the same page with you guys.
>
>
>>>>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
>>
>>Dave,
>>You are right! I've tested it and you can access the protected method or property of a button dropped onto a form from within it's own methods, even when that code is written into the base class of the command button. This should work, even for "hidden" in this case. hmmmmm. I'm in VFP 6 here.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform