B
Badass Scotsman
Hello,
Couldn't find a classic ASP Usenet group, hopefully someone here will know
the answer.
I have a string called "FirstName" which will may be anything up to 20
characters in length ( I gather this string using
Request.Form("FirstName") ). However if it is less than 20 characters, I
would like the string to "expand" to 20 by using SPACES. IE, the String
FirstName should ALWAYS be 20 characters long, regardless of the user input.
Gary would become: "Gary " (Gary plus 16 spaces)
Bryan would become: "Bryan " (Bryan plus 15 spaces)
Pauline would become: "Pauline " (Pauline plus 13 spaces)
I would like this string to convert itself to 20 characters long when the
page loads if possible. I will also be doing this for other field names
such as Surname, HomeTelephone and WorkTelephone.
Any help greatly appreciated.
Regards,
Gary.
Couldn't find a classic ASP Usenet group, hopefully someone here will know
the answer.
I have a string called "FirstName" which will may be anything up to 20
characters in length ( I gather this string using
Request.Form("FirstName") ). However if it is less than 20 characters, I
would like the string to "expand" to 20 by using SPACES. IE, the String
FirstName should ALWAYS be 20 characters long, regardless of the user input.
Gary would become: "Gary " (Gary plus 16 spaces)
Bryan would become: "Bryan " (Bryan plus 15 spaces)
Pauline would become: "Pauline " (Pauline plus 13 spaces)
I would like this string to convert itself to 20 characters long when the
page loads if possible. I will also be doing this for other field names
such as Surname, HomeTelephone and WorkTelephone.
Any help greatly appreciated.
Regards,
Gary.