ForEachアクティビティのint_indexの初期値を1に設定したい。

こんにちは
UiPath Studio 2025.0.161STS Community editionのユーザーです。

1.やりたいこと

ForEachアクティビティでDataRow配列をインデックスint_indexで回している。
int_indexの初期値を1に設定したい。

2.悩んでいること

変数パネルでint_indexの既定値を1に設定しても、ForEachアクティビティの直前に代入アクティビティでint_index=1にしても、ForEachアクティビティの中に入ると、int_indexの値が0になっていることが判明。
int_indexの初期値を手作業で1に設定することは可能でしょうか?

@gorby

If you are assigning the int_index variable to index property in for loop then automatically it would change to 0 as by default the values starts from 0

One thing you can do is use +1 always to get the index you need

Or remove the variable from index property and manually increment it in for loop so that it starts from where you need

Cheers

Hi, my enthusiastic UiPath Instructor, @Anil_G
As you suggested, I think there are several means to fix this problem.
However, my question was to know to set 1 as the first value of int_index.
May I think there are NO MEANS to set 1 as the first value of int_index in the end?
I believe you can show me exact answer on the dot.

1 Like

@gorby

If you are using index property of for loop then no..you cannot

Cheers

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