Forum Discussion

Egg's avatar
Egg
Frequent Contributor
8 months ago
Solved

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.   ...
  • MW_Didata's avatar
    8 months ago

    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.

  • MW_Didata's avatar
    8 months ago

    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.