For loop
Hello. I have a question about 'For Loop'
I read csv file's first cell value.
and I change that value string to int.
and I wanna +1 from that value.
So I write like below.
the first cell's value is '1'.
I expected 1, 2, 3, 4 log.
but that print only 1, 1, 1, 1
How can i fix this script?
Pleas share your thinking .
Thank you .
Like this?
The value doesn't change anywhere so it will post the same one every time.
I also suggest converting string to int before using the loop.
For me aqconvert.StrToInt() works just fine, I noticed you have not filled in the loop variable be sure to have a empty int variable just for this, for loop counts that var +1 every loop automatically.
In my example loop it first converts string to Int, then within the loop it does +1 and posts a log.