N
Nikolay Petrov
I am looking for a way to iterate from A to Z.
something like the For/Next loop, but with letters. the iteration
should start from specified letter and continue n times. If Z letter is
reached, the next should be AA, AB, AC and so on.
something like:
dim cStartLetter As char = P
dim i,j as integer
j=5
for i = 0 to j
'code to retrun the letter which is i positions from cStartLetter
position in alphabet
' P is 18th letter, so first iteration should return Q, next R and
so on
' if Z is reached the next should be AA. If AZ is reached the next
should be AAA.
next
sorry for the bad english
thanks in advance
something like the For/Next loop, but with letters. the iteration
should start from specified letter and continue n times. If Z letter is
reached, the next should be AA, AB, AC and so on.
something like:
dim cStartLetter As char = P
dim i,j as integer
j=5
for i = 0 to j
'code to retrun the letter which is i positions from cStartLetter
position in alphabet
' P is 18th letter, so first iteration should return Q, next R and
so on
' if Z is reached the next should be AA. If AZ is reached the next
should be AAA.
next
sorry for the bad english
thanks in advance