473,406 Members | 2,208 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,406 software developers and data experts.

First letter MUST be uppercase

Hi there!

Nowadays trend is to write everything in lowercase. Last Names, First Names, City Names, etc...
Maybe the use of computers is one of the reasons to such bad typing.

In a form, there's a lot of Input Fields to fill-in...
Is there a way in AS to make the first letter typed in an uppercase one?

I thank you in advance for the help you'll provide.

Best regards,
Gerry
Feb 26 '08 #1
1 3522
nomad
664 Expert 512MB
Hi there!

Nowadays trend is to write everything in lowercase. Last Names, First Names, City Names, etc...
Maybe the use of computers is one of the reasons to such bad typing.

In a form, there's a lot of Input Fields to fill-in...
Is there a way in AS to make the first letter typed in an uppercase one?

I thank you in advance for the help you'll provide.

Best regards,
Gerry

hello Gerry:
you could do something like this

Heres the code for the method:

Expand|Select|Wrap|Line Numbers
  1. String.prototype.ucFirst=function()
  2. {
  3. if(arguments[0] == true)
  4. {
  5. var words=this.split(" ")
  6. for(var w in words)
  7. {
  8. words[w]=words[w].ucFirst()
  9. }
  10. return words.join(" ")
  11. }
  12. return this.charAt(0).toUpperCase()+this.substring(1,this.length)
  13. }

Expand|Select|Wrap|Line Numbers
  1. input_title="this is my title";
  2. title=input_title.ucFirst();
  3. input_name="guy watson";
  4. name=input_name.ucFirst(true);
nomad
Feb 27 '08 #2

Sign in to post your reply or Sign up for a free account.

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
4
by: dave | last post by:
Hi How to make first letter of word in upper case? i.e. hello should return Hello Is there any inbuilt function?? Thanx dave
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...
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
2
by: setabery | last post by:
When entering a value to a field, is there a way to make only the first letter upper case without using the Shift Key? For example, entering a name.
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...
5
by: Middletree | last post by:
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...
2
karthickkuchanur
by: karthickkuchanur | last post by:
if((document.forms.employeeId.value == 0) && (document.forms.applicantId.value == 0)) { alert("Please Select the "+document.forms.type.value+" Code or Name"); return false; } i...
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: 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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...

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.