They are standard ASCII character codes.
#48 = ASCII 48 = 0
...
#57 = ASCII 57 = 9
#8 = Backspace (IIRC)
This is relatively easy to do.... just hook the keypress handler and look at the length of the text field. If it is less than the required length (or the key code is a control character like backspace), then leave it as it is, otherwise, set the key value to 0... it will then be ignored, thus stopping the user entering more characters.Originally Posted by Wizard
Bookmarks