473,396 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Make sure first letter is uppercase

I want to take a value that users type into a field (actually 2
fields--first and last name) and convert the first letter to Upper Case. I
htought I could use UCase, but it seems to only work for an entire string.
Anyone got a suggestion?
Jul 12 '07 #1
5 8724
Middletree wrote on 12 jul 2007 in
microsoft.public.inetserver.asp.general:
I want to take a value that users type into a field (actually 2
fields--first and last name) and convert the first letter to Upper
Case. I htought I could use UCase, but it seems to only work for an
entire string. Anyone got a suggestion?
t = request.form("myField")
t = ucase(left(t,1)) & mid(t,2)

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 12 '07 #2
Works! Thanks!
Jul 13 '07 #3
Middletree wrote on 13 jul 2007 in microsoft.public.inetserver.asp.general:
Works! Thanks!
Please next time, quote. Usenet is not email!

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 13 '07 #4
Middletree wrote on 13 jul 2007 in
microsoft.public.inetserver.asp.general:
>Works! Thanks!

Please next time, quote. Usenet is not email!
And Microsoft forums are not Usenet.

I hate quoting because I am a staunch believer in top-posting, and when I
quote, I get "corrected" by those who hate top-posting. They always remind
me that top-posting is against the rules of etiquitte. In fact, most people
I know prefer to read a top-posted message, but because we weren't around
newsgroups in 1989 when those rules were formulated, we don't get any say.

But I bottom-posted here for you because I really appreciate your help. I
had never heard of "mid" before. Thanks.
Jul 13 '07 #5
Middletree wrote on 13 jul 2007 in
microsoft.public.inetserver.asp.general:
>Middletree wrote on 13 jul 2007 in
microsoft.public.inetserver.asp.general:
>>Works! Thanks!

Please next time, quote. Usenet is not email!

And Microsoft forums are not Usenet.
Any NG that is on usenet is part of usenet.
I hate quoting because I am a staunch believer in top-posting, and
when I quote, I get "corrected" by those who hate top-posting. They
always remind me that top-posting is against the rules of etiquitte.
In fact, most people I know prefer to read a top-posted message, but
because we weren't around newsgroups in 1989 when those rules were
formulated, we don't get any say.

But I bottom-posted here for you because I really appreciate your
help. I had never heard of "mid" before. Thanks.
OK.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 13 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nacho | last post by:
i need to convert the first letter of a veriable to uppercase (the veriable is loaded and the applied LCase() ) thanks -- Nacho
1
by: Dwight Shubert | last post by:
Hi all, This is my first try using Access. I understand how to format a text field for uppercase and lowercase, but how do you capitalize only the first letter of each word? tia Dwight
2
by: blabla120 | last post by:
In an element of my source xml file, II have an attribute method="getSurfaceNumber". I want to make a XSL transformation to a target file. In the target file, I want to give out the mehod name...
6
by: Ian Boyd | last post by:
Every time during development we had to make table changes, we use Control Center. Most of the time, Control Center fails. If you try to "undo all", it doesn't, and you end up losing your identity...
3
by: shapper | last post by:
Hello, How can I make the first letter of a string to be upper case and all the others lower case? Thanks, Miguel
14
by: fniles | last post by:
In VB.NET 2005 can I check if a letter in a string is upper case or lower case ? For example: I have the following 2 lines: NQ,Z2003,11/11/2003,1416.5,1420,1402,1411.5...
3
by: majorecono | last post by:
What I'm bad at is the dialog box part. This is the code Ive come up with... if you see a way to improve what im thinkng of.... post it please. Program should.... 1. Ask user to type in a...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.