Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling a Key Press
Message
From
14/12/1999 14:26:36
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00303395
Message ID:
00303562
Views:
26
>OKL's can have severe and devastating side effects
Yeah... just like too much code and not enough outside contact. :)

I wasn't recommending the OKL method, it just one possibility.

I know this is an insignificant difference, but wouldn't it be less code to StrTr(this.value,"-","") in LostFocus than to prevent the key from being entered? (unless i guess if you set the maxchars (to 9 for SocSecNo), where the "-" would be counting towards that maximum)

BTW, do you have a list of 'bad' commands and their accompanying severe and devastating side effects - it would be an invaluable reference for the future.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform