By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,568 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,568 IT Pros & Developers. It's quick & easy.

Upper or Lower case

P: 36
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
Share this Question
Share on Google+
5 Replies


hsriat
Expert 100+
P: 1,654
toLowerCase() / toUpperCase() should help you.
Jul 18 '08 #2

P: 36
Thank you, but how can I check the case of the original data?
Jul 18 '08 #3

hsriat
Expert 100+
P: 1,654
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

P: 36
Thanks. I really appreciate your help.
Jul 18 '08 #5

hsriat
Expert 100+
P: 1,654
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.