Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping the Backspace Key
Message
From
13/08/1999 12:57:09
 
 
To
13/08/1999 12:52:42
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00253434
Message ID:
00253486
Views:
41
>>
*KeyPress
>>
>>Thisform.nLastKey = nKeyCode
>>
>>*Valid
>>
>>return !thisform.nLastKey = 127
Would this be right?
>
>I'm not sure my tendency would be to.
>

>LPARAMETERS nKeyCode, nShiftAltCtrl
>IF nKeyCode = 127 AND THIS.SelStart = 0
> NODEFAULT
>ELSE
> DODEFAULT()
>ENDIF

You don't need a DODEFAULT() here. If you do, you'll get the keystroke echoed twice.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform