472,143 Members | 1,770 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 2887
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
reply views Thread by leo001 | last post: by

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.