Serial # - Enforcing minimum number of characters typed in
Posted: Tue Jan 23, 2007 4:22 pm
Is there an easy way to enforce a minimum number of characters that can be entered in a field before moving on to the next dialog? We have a registration number in the form
XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
I can set a MaxLength of 29 characters on the text field to ensure that it is not too long, but if it's too short I'd like a message box to pop up and say something like "Serial number is not long enough. Please check your typing and re-enter." (OK, something a bit more polite than that, but you get the idea.)
I have seen other posts that mention either creating a plug-in or calling an external DLL, but this seems like overkill for my needs - is there a "string length " call somewhere I could make?
Thanks,
Eric
XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
I can set a MaxLength of 29 characters on the text field to ensure that it is not too long, but if it's too short I'd like a message box to pop up and say something like "Serial number is not long enough. Please check your typing and re-enter." (OK, something a bit more polite than that, but you get the idea.)
I have seen other posts that mention either creating a plug-in or calling an external DLL, but this seems like overkill for my needs - is there a "string length " call somewhere I could make?
Thanks,
Eric