Limiting Text Field input

BlitzPlus Forums/BlitzPlus Programming/Limiting Text Field input

Anyone know how to set a maximum length of input for a text field? And to just numbers, for that matter? Thanks.

Say I wanted the user to only input 2 numbers, and ignore all the keystrokes afterward (except backspace), and any keystrokes that happened to be letters.