Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NODEFAULT doesn't work in all events?
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
NODEFAULT doesn't work in all events?
Divers
Thread ID:
00597789
Message ID:
00597789
Vues:
45
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform