Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overriding a method in a class
Message
From
06/08/1998 12:08:51
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, United States
 
 
To
06/08/1998 12:05:37
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00124505
Message ID:
00124514
Views:
13
>>I want to add to the default behaviour for a class, how do I call the standard class method? Example - I have a command group class that moves around in a table, add, edit, delete. I want to override the add buttons functionality so that after the classes add code is run, I can do specific actions for the particular form/table.
>>
>>Shane
>
>If you want to combine class button.click event code with you custom code then:
>*** Form.Button.Click event
>Dodefault() && run class code
>=messagebox("your code here")

This is VFP 3.0 and the button is within a command group within a class that I created and have dropped onto my form.
--Shane
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform