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:
00213497
Vues:
26
Jose,

Let's use an example to show this. You have a combobox class with code in the .When and .Valid events. You subclass your combobox and want *different* logic in the .When and *additional* logic in the .Valid:

.When

{your new code}
NODEFAULT

.Valid

{your additional code}
DODEFAULT()

The one thing to remember with DODEFAULT() is that if the method/event has a parameter, include it like so DODEFAULT(parameter). HTH

>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?
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform