| how can I verify | that 3 characters have been entered and if not pad with leading Zeros?
Hi Daryll, I'm not sure I'm getting what your problem is. sub beautify_input { $foo = $Window->MyField->Text (); $bar = sprintf ("%03d", $foo); return $bar; } is one of 1001 ways to turn 1 to 3 digit numerical input into exactely 3 digits with leading zeroes. It does not do any validation (is $foo numeric, is it more than three digits ...), but is that your issue at all? Or do you wonder where to put the &beautify_input call, ie, when to intercept user input?