Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's NoDefault and DoDefault
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00213459
Message ID:
00213474
Vues:
30
DODEFAULT() just runs the code one step up the class hierarchy from your current method. So if you put DODEFAULT() in the click method of a command button and the command button's parent class is cmdBase, DODEFAULT() will run cmdBase.Click().

NODEFAULT keeps the base class default behavior from ocurring. For example, if you put NODEFAULT in the unload event of a form, the form will not unload. If you put NODEFAULT in the keypress event of a text box, the keystroke will not be processed.

>Many answers to questions have NoDefault or DoDefault, and I tried to use the code of an answer and when VFP compiles it an error ocurrs.
>And i wish to know what they mean and how to use it.
>
>Who could tell me about?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform