>>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