Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running both the class method code and the userdefined
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00041688
Message ID:
00041704
Vues:
41
>Thank you for your quick answer! From your answer finally I got undrestood the topic, and got the tip where to start the searching.
>But I didnot know, that it is possible to run a code not from the parent class, but from grandfather or even higher classes?
>
>Thanx again!
>
>BB
>
>
>
>>>I have a visual class problem.
>>>I made own visual object controll classes. I put some code in the init event.
>>>When I create a controll on a form based on my class I don't "see" the
>>>code which I put in the init event. But if I put any code in the init method at controls, the "default" code doesn't run. So as I see now, I have to repeat the controls class init code in the controls init method.
>>>I feel, that I missed something, but I didnot find nothing in the
>>>Class Browser withwhich I could make the class init code visible in the controls.
>>>
>>>Any advise?
>>>
>>>Thanx in advance!
>>>
>>>BB
>>
>>
>>method code for btntest.init (example)....
>>
>>*- special code for btntest.init here
>>
>>*- now call code from class
>>btntest::init
>>
Yes, code will run from higher levels in the same way. However, sometimes it's difficult to get the correct syntax. If you're using VFP5, you just put in the DODEFAULT() clause:
method code for btntest.init (example)....

*- special code for btntest.init here

*- now call code from class
DODEFAULT()
(Thanks to Dave for the code)
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform