Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent exiting a text box...
Message
From
16/05/2002 19:59:07
 
 
To
16/05/2002 10:51:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00657372
Message ID:
00657917
Views:
30
You may put the following code in the Valid event of the textbox:

IF LASTKEY() = 127 OR LASTKEY() = 19
RETURN 0
ENDIF

The above code will force the cursor to stay on the textbox if the LASTKEY() value is 127 (backspace) or 19 (left arrow).

Hope I was of help... :)

Dennis
Previous
Reply
Map
View

Click here to load this message in the networking platform