Combining row with for each row


#1

Hi

There are several rows as following:

$sample (System.Data.Datatable)
0=>hoge
1=>fuga

and need to combine these rows above, using for each rows:

<For each row>
For each row in $sample
<Assign>
row = row + row

but it doesn’t work and the error thrown like below
“+ operator is not defined in Type System.Data.Datatable”

I just want to get combined string value “hogefuga”

How can i resolve this with for each row activity?


#2

Change this to row(0) = row(0).ToString + row(1).ToString


#3

Hi @sarathi125
It worked perfect ! Thanks for your helpful comment :sunglasses: