473,748 Members | 2,417 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8765
Middletree wrote on 12 jul 2007 in
microsoft.publi c.inetserver.as p.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("m yField")
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.publi c.inetserver.as p.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.publi c.inetserver.as p.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.publi c.inetserver.as p.general:
>Middletree wrote on 13 jul 2007 in
microsoft.publ ic.inetserver.a sp.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
4822
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
4119
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
2251
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 in text, I do it like this <xsl:value-of select="@method"/> This goes perfect. Now I want the first letter of the string in Uppercase:
6
5932
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 seed, or your constraints, or your triggers, or your table. Talking to developers at other companies who have had the misfortune of using DB2, they are adamant that you cannot use the tools; they are buggy and you just have to resign yourself to...
3
3510
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
43840
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 NQ,z2003,11/10/2003,223801,260154 NQ,H2004,11/11/2003,1416.5,1422.5,1406.5,1415 NQ,h2004,11/10/2003,56,1191 Notice the 1st line has uppercase Z (Z2003) and the 2nd line has lowercase z
3
5066
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 sentence, using JOptionPane.showInputDialog(). 2. The program will scan each letter in the string and count how many times the upper case letter 'E' appears, and how many times the lower case letter 'e' appears. 3. Using a JOptionPane.showInputDialog(),...
1
47476
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 on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script. What You Need Any recent...
0
8832
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9558
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9253
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6798
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2216
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.