They are standard ASCII character codes.

#48 = ASCII 48 = 0
...
#57 = ASCII 57 = 9
#8 = Backspace (IIRC)

Quote Originally Posted by Wizard
Instead of comparing values entered, is there no way (except edit.maxLength - which doesn't seem to work) to limit the number of characters entered into the edit? I would like to move between 1 and 2 characters (in the code) and if I can achieve that the problem would be solved.
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.