This message serves for Google indexing. It only includes the first message of each thread from technical forums. To see the entire thread, the solutions and the technical content related to each message, you need to log in by going to the main page. This can be done at http://www.universalthread.com. If you do not have an account, we encourage you to create one now and start participating in Microsoft .NET and SQL Server related technology forums, just to name a few. Our database contains nearly two millions valuable high end technical messages. Thanks for the generous contribution to everyone who participated on the site so far, including MVP, Microsoft employees and many other well known contributors. The valuable content of the Universal Thread has created a history of 16 years of high end technical content which has helped many consultants, developers and many others in the industry on a daily basis. The site also offers a subscription option that greatly enhances your site experience.


View message
From28/07/1997 13:04:38
Erik Moore #010229
EKraft
Austin, Texas, United States
To  
All


I have a social security number field in which I need users to be able to type in the number with or without the dashes. I thought that the input mask property would provide for this, but typed dashes show up as extra characters. A format setting for all numeric characters only would also take care of the problem, but there is no such animal. I have tried to intercept the keycodes in the keypress event like this:

nodefault
if between(nkeycode, (code for 0), (code for 9)) or nkeycode = 45 && 45 = tab
dodefault()
endif

This seems to work at first except that after filling out the field, the cursor won't leave the text box and fire the valid code. It just sits there in the last position. What's happening here? Or better yet, how can I do this more gracefully?
Erik Moore
Clientelligence