DANY
08-10-2004, 05:21 PM
Hello to all,
Assume I have a field length of 10 digits long, a string type and the last four digits are considered to be the YEAR. Sometimes the user will enter it as shown below but i want it to be padded with leading zeros and also to pad the year
Before After (what I am looking for)
234/03 00024/2003
54576/99 54576/1999
567A/02 0567A/2002
78/98 00078/1998
786/2004 00786/2004
I need a funciton to pass the string value and as I type the value in the textbox, it will becomes as shown in the (AFTER) (what I am looking for.
thanks for any help.
Assume I have a field length of 10 digits long, a string type and the last four digits are considered to be the YEAR. Sometimes the user will enter it as shown below but i want it to be padded with leading zeros and also to pad the year
Before After (what I am looking for)
234/03 00024/2003
54576/99 54576/1999
567A/02 0567A/2002
78/98 00078/1998
786/2004 00786/2004
I need a funciton to pass the string value and as I type the value in the textbox, it will becomes as shown in the (AFTER) (what I am looking for.
thanks for any help.