I know I can limit the number of characters entered in a edit box using the limit option, but can I also limit what kinds of characters? Specifically, I'm wanting to only accept an entry of a single digit (0 to 9). I don't want any other characters to be accepted.

Or do I have to script this using the on dialog event, using the edit event?