Albert,
>>First, you can set the Format of your editbox to 9 and the Maxlength to 5 and use the same code I sent you. If you would look you would see that.
>>
>>Secondly, why an editbox for a 5 character value?
>
>She wants a set of 5 character values. I think she should replace the editbox with a control consisting of a grid linked to an updatable cursor and coordinated with insert and delete buttons. This would allow her to easily control the format of the input. Something like this was already recomended but, she is fond of the editbox and does not want to give it up.
Don't even try! :))) I'm afraid, I'll recieve a reputaion of editbox fun. Ok, who else wants to join the club? :) Last time I repeat, I don't need to check user's input here. It's my personal idea.
If it's not broken, fix it until it is.
My Blog