Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form's problem
Message
De
12/05/1999 12:44:20
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00216559
Message ID:
00217910
Vues:
23
>Fred,
>
>NODEFAULT only prevents the VFP BaseClass behavior from occuring automatically at the end your overridden code. There isn't anything inconsistent about it at all. Sometimes though the BaseClass behavior can undo work you've done in method code in this case you can NODEFAULT, explicitly call it with BaseClass::Method() and then the rest of your method code.

David,

I have a question for you concerning BaseClass::Method() calls: Why can't I get this to work in a form's KeyPress event? If I want to override the value trapped in a TextBox by the form's KeyPress (.KeyPreview=.t.) using NODEFAULT and Form::KeyPress(ASC('X'),0) it doesn't work. I get no character showing at all in the textbox. If I put the similar code (TextBox:KeyPress(ASC('X'),0)) in the MyTextBox.KeyPress event, it works. It also does not work with the DODEFAULT(ASC('X'),0) syntax, either.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform