469,658 Members | 1,801 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,658 developers. It's quick & easy.

Upper or Lower case

Hi Guys,
I hope you could help me to solve this problem. Here it is: I have a huge table of data. Some data are Lower case and some are upper case. these data could be changed by agents, But I want to keep the case. For example: if data is Lower case and it changed to upper case at the time of change it should be lower case again. I know sounds terrible, but this is the problem. any hints will be appreciated. thanks
Jul 18 '08 #1
5 2774
hsriat
1,654 Expert 1GB
toLowerCase() / toUpperCase() should help you.
Jul 18 '08 #2
Thank you, but how can I check the case of the original data?
Jul 18 '08 #3
hsriat
1,654 Expert 1GB
Thank you, but how can I check the case of the original data?
I am afraid, for that you would need to go character by character. Check ASCII code of each character. (charCodeAt() should help you there).

Google for a 'ASCII table', you will get to know the ASCII codes for all alphabets.
Jul 18 '08 #4
Thanks. I really appreciate your help.
Jul 18 '08 #5
hsriat
1,654 Expert 1GB
Thanks. I really appreciate your help.
You are welcome :)
Jul 18 '08 #6

Post your reply

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

Similar topics

3 posts views Thread by Johannes Koch | last post: by
4 posts views Thread by programmerforhire | last post: by
17 posts views Thread by Janice | last post: by
19 posts views Thread by Eric Lindsay | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.