Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to stop backspace key moves from one textbox to anot
Message
From
01/01/1997 12:45:23
 
 
To
31/12/1996 11:27:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00016236
Message ID:
00016284
Views:
34
> In KeyPress event you can check SelStart property and if it equals to 0, you intercept the case and, I think, using setfocus() with nodefault will restore focus to the textbox.

actually after you trapped the backspace in the Keypress event (and confirmed it will get outof the field - either by if alltrim(this.value)="" or by what Edwards said or whatever) issueing a NODEFAULT will prevent the
Keypress from being processed

Arnon
Previous
Reply
Map
View

Click here to load this message in the networking platform