Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overriding a method in a class
Message
De
06/08/1998 12:20:38
 
 
À
06/08/1998 12:08:51
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00124505
Message ID:
00124519
Vues:
20
>>>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.

in VFP3 you can use scope resolution operator '::' to run class code.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform