Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User defined methods pre-empt necessary processing?
Message
 
To
16/07/1999 19:36:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00242642
Message ID:
00242669
Views:
17
David,

Any behavior defined in teh VFP base class WILL be executed unless you take steps to stop it. It will execute after your code runs. If you want to stop it then you use the NODEFAULT command to stop the default behavior.

This is true ONLY for teh VFP base calsses, if your control is based on a class that is deifned in a class library, then adding any code to it stops the inherited behavior unless you issue a DoDefault() call. The VFP base behaviro will execute unless you stop it.

For example, if you create a textbox class and write code in the keypress event, VFP will still process the keystroke (the dafault behavior). If you place one of those textboxes in a fomr and write code in the keypress, the code in the first class will NOT run, but VFP will still process the keystroke. To get the class code to run you issue DoDefault() (and be sure to pass the parameters back also).
Previous
Reply
Map
View

Click here to load this message in the networking platform