Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form's problem
Message
From
12/05/1999 12:44:20
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00216559
Message ID:
00217910
Views:
29
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform