Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to stop backspace key moves from one textbox to anot
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00016236
Message ID:
00016240
Views:
31
>I don't understand how to stop this behavior.
>
>In most windows programs, the backspace key will only backspace to the left limit of the text box. However, it seems that when there is more than one textbox in a form, the backspace key will take you to the next textbox after you reach the left limit.
>
>My users are complaining and I haven't figured out how to fix this. Any ideas?
>
>D. Bernardo

Well one easy solution is to put a check in for an empty field2 in the field1 GotFocus. If it is empty and the last key pressed was 127 (BS) then issue a Field2 setfocus. In Field2 KeyPress you may want to track the occurrences of 127 and set a flag which is used in the field1 gotfocus... This is a quick solution I just tried and it seems to work. I only spent 5 minutes on it, so check out other solutions before using this one... Steve
Steve Medvid
Systems Analyst

Environmental Resource Management
Previous
Reply
Map
View

Click here to load this message in the networking platform