Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's NoDefault and DoDefault
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00213459
Message ID:
00213497
Views:
27
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform