Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NODEFAULT doesn't work in all events?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
NODEFAULT doesn't work in all events?
Miscellaneous
Thread ID:
00597789
Message ID:
00597789
Views:
42
I have 2 events that where I try to suppress VFP's native behavior with DODEFAULT, and it doesn't work.
1. In a form.Refresh method
2. In a combo.DropDown event... I want to invoke a mover box instead.

In the first case, I put some specific code in my form (the SCX) plus a DODEFAULT() to execute the standard code in my form class. What happens, is the DODEFAULT() executes the class code and then refreshes the form, and then the code in my form finishes and refreshes the form again. Since refreshing is a slow process, I don't want to do it twice. I tried putting NODEFAULT in the form as well as in the class, but it doesn't work. I tried MyFormClass::Refresh() instead, but that still refreshes twice.

I could always create a "REFRESH_CODE" in my class, or (worse) I could copy the class code to my form and completely defeat the principle of OOP.

Am I missing something obvious, or is it that DODEFAULT only works in specific methods where the documentation specifies it?
Tom Green in Montreal
Next
Reply
Map
View

Click here to load this message in the networking platform