Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping the Backspace Key
Message
From
13/08/1999 13:00:25
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00253434
Message ID:
00253491
Views:
29
>>>
*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.

That's true. Thanks for the correction.
Previous
Reply
Map
View

Click here to load this message in the networking platform