dr_work、dr_work1を別のDataRowと認識させたい

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

arr_DataRowはdtのDataRow配列です。

dr_work=arr_DataRow(0)
とした後、

dr_work1=dt.NewRow()
dr_work1=arr_DataRow(0)

としても、

dr_work、dr_work1は同じDataRowを指していることが分かりました。
dr_work、dr_work1を別のDataRowと認識させる手段があればご教示下さい。

@gorby

Can you explain little bit more about the problem.

but as per above info, dr_work1=arr_DataRow(0)
here you given index as 0 if it not increment each time then it will take same array of item.

here you can use loop based on your input array variable
or
first get how many items are there in array var by using arrVar.count()
use loop give count over there in loop, inside use variable index in the place 0(dr_work1=arr_DataRow(0)) increase that index on each iteration.

try and let me know

Happy automation!!

dr_work1=arr_DataRow(0)は同じ参照コピーするだけなのでよろしくありません。

中身をコピーしたいのであれば

dr_work1.ItemArray=arr_DataRow(0).ItemArray

で通ると思います

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