Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing the parentclass
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00444743
Message ID:
00445056
Views:
15
>>Hi, everybody!
>>I have a form wich is based on 2
>>classes, when i'm pressing the button
>>i want the code in the methode("SETMODE") of the parentclass
>>to be executed . hOW DO I DO THAT!!!
>>Thank U in advence.
>

>Ilya,
>
>If you want to run the code from the first class in the chain then you can try theclassname::themethodname(yourparms)
>the double :: is used to call that class directly.
>with dodefault() you call the same method of the parent class.
>not the code from the grandparent.

In addition: if the parent class method also has DODEFAULT(yourparameters) in code it will execute a grandparent method too.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform