I am new to UiPath and with limited experience with vb.net. so right now I am having trouble assigning the row values from a DataTable in a for each activity nested in another for each for a different DataTable.
What I want to perform is:
For each item in DT1:
do For each item in DT2:
do Assign DT1.column(“Color”) = DT1.Column(“Color”) + DT2.Column(Color)
I want to do this in order to attach the each color code in DT2 to each row in DT1.
I am open to a better approach.
I do not know the syntax on how to call the datatable columns/rows when you are interacting with two at the same timen. When I do a simple for each in a DT is simpler, like Assign: row(“Output Column”) = row("Input Column)
@andres.santos You can use DT(rowIndex)(columnIndex) = DT1(rowIndex)(columnIndex) or
DT(rowIndex)(“columnName”) = DT1(rowIndex)(columnName) or
DT.Rows(rowIndex).Item(“columnName”) = DT1.Rows(rowIndex).Item(“columnName”)
These are ways you can Access values in a Datatable , I hope this is What you needed