2回連続でForEachRowアクティビティを回して、index番号を引き継ぎたい。

こんにちは
UiPath Studio EnterPrise Edition 2022.4.3ユーザです。

1.やりたいこと

50行あるdt_1をForEachRowアクティビティで2回連続で回しています。

最初のForEachRowアクティビティで

dt_1.Rows.IndexOf(Row) = 3

がTrueになった際に、Breakして2回目のForEachRowアクティビティでdt_1.Rows.IndexOf(Row) = 4から再開したい。

2.相談したいこと

dt_1をForEachRowアクティビティで2回回すと、最初のForEachRowアクティビティで途中中断した際のindex番号は2番目のForEachRowアクティビティに引き継がれないようでした。
最初のForEachRowアクティビティで途中中断した際のindex番号で、2番目のForEachRowアクティビティを再開するすべはないものでしょうか。

@gorby,

Use the index variable with scope which covers both the for each Loop.

Second loop use While and not the for each row in datatable

In condition put indexvariable<Dt1.rowcount
Use assign activity to get the row like dt1.Rows(indexvariable)
Inside while adding assign activity to increase the index variable by 1.

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