473,395 Members | 1,474 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,395 software developers and data experts.

Increment Letters?

Is there any way of incrementing letters, A+1=B or A++?
Thanks
Mike
Dec 5 '07 #1
3 12701
On Dec 5, 5:09 pm, Mike <ampel...@gmail.comwrote:
Is there any way of incrementing letters, A+1=B or A++?
Thanks
Mike
See javascript string functions
http://www.w3schools.com/jsref/jsref_obj_string.asp
Dec 5 '07 #2
Mike wrote:
Is there any way of incrementing letters, A+1=B or A++?
I think
String.fromCharCode('A'.charCodeAt() + 1)
is what you are looking for.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 5 '07 #3
On Dec 5, 12:29 pm, Martin Honnen <mahotr...@yahoo.dewrote:
Mike wrote:
Is there any way of incrementing letters, A+1=B or A++?

I think
String.fromCharCode('A'.charCodeAt() + 1)
is what you are looking for.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Thanks!!
Dec 5 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Edward K. Ream | last post by:
From the documentation for the string module at: C:\Python23\Doc\Python-Docs-2.3.1\lib\module-string.html letters: The concatenation of the strings lowercase and uppercase described below....
19
by: Johannes Nix | last post by:
Hello, yesterday I met a cute person (after my dance class) who told me about an interesting experiment regarding cognition. People were told to read a typed text; However, in every word in the...
8
by: Mansi | last post by:
Given the following declaration: String letter = "A"; Is there a way that I can increment letter so that "B" is returned? Is there a way that I can add an offset so that let's say, "G" is...
3
by: George Ter-Saakov | last post by:
What is the purpose of having Interlocked.Increment if it does not work with variable declared as volatile. Here is my problem, Interlocked.Increment increments the variable in thread safe...
11
by: divya_rathore_ | last post by:
The code: int aaa = 100; printf("%d %d %d\n", --aaa, aaa, aaa--); printf("%d\n", aaa); prints: 99 100 100 98
2
by: shivendravikramsingh | last post by:
Hi, I'm looking for some basic help. I am developing a MySQL database and want to auto increment a field, but I don't want it to just count 1,2,3, etc. I want the field to be a combination of letters...
9
by: Lilbrat | last post by:
Im not finding anything similar in the Posts so correct me if Im wrong... Im real new to programing in Access (Been a while since I programed in anything). The question I have is.. How do you...
1
by: leoiser | last post by:
I want to get the maximum font size that can fit to a button.I am loading a Button to a panel.its width and height will vary(dynamically based on some calculations).I want to increase to the maximum...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
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
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...

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.