Hi
Firstly sorry if this is not the right section for this.
I have a String variable that gets it's value from a textbox.
This value can be anywhere from
0000001 to 9999999
Or
000001 to 999999
Or
00001 to 99999
I need to be able to add one to the value on each iteration of a loop.
I.e.
00001 loops 10 times= 00010
but no matter what I have tried the result is
10
instead of
00010
Is there a way that I can preserve the leading zero's?
any help will be much appreciated.
Firstly sorry if this is not the right section for this.
I have a String variable that gets it's value from a textbox.
This value can be anywhere from
0000001 to 9999999
Or
000001 to 999999
Or
00001 to 99999
I need to be able to add one to the value on each iteration of a loop.
I.e.
00001 loops 10 times= 00010
but no matter what I have tried the result is
10
instead of
00010
Is there a way that I can preserve the leading zero's?
any help will be much appreciated.