Rows index +1

Hello, My robot shows me the index one less, instead of 5 it shows me 4… Do you have any idea what I did wrong? I know that the index is from 0, but I don’t know how to enter it in the robot “+1”


Thank You.

Hi @sullivanne ,

I believe you would require to just add +1 to the Expression in the Message Box as it also outputs an Integer value.

Read_Range_DT.Rows.IndexOf(CurrentRow).ToString+1
I’m getting an error :frowning:

HI @sullivanne

The index always starts from 0 only, Like in an array also it will start from 0.

If you want 5 row outputDt.rowcount+1

1 Like

@sullivanne ,

In the Screenshot .ToString was not added, remove this part and check.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.