Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I restrict TextBox values without using combo
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00563635
Message ID:
00563674
Views:
19
>It's nice to have Foxpro 2.6 help file around, don't you think? :)
>To get 'Delete' key to work add comma to the end of the list in the InputMask and following code to the textbox keypress event. It works but I didn't test it extensivly.
>
LPARAMETERS nKeyCode, nShiftAltCtrl
>If nKeyCode = 7
>	DO Case
>	Case This.Value = "A"
>		Keyboard '{SPACEBAR}{SPACEBAR}'
>	Case This.Value = "I"
>		Keyboard '{SPACEBAR}'
>	Endcase
>EndIf
>
>BTW, how do you lik my picture? :)

Ok, it works great, but it's not enough :) I want to activate BackSpace too, e.g. want to be able to click after I and delete it using BackSpace. Currently I can only click before I/A.

Anyway, it's not a big of a deal...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform