DataTable and DataTable[]

Hi everyone!

I am doing the Assignment no.1, but I have a problem with assign the variable WIList.
I try many ways to solve this trouble but it is not enought.

Cannot assign from type 'System.Data.DataRow[]' to type 'System.Data.DataTable[]' in Assign activity 'Assign'.



Here, WIList is of type DataTable but not dataTable [ ].

dataTable is nothing but array of Data rows. I.e. DataRow


DataTable WIList =“Type = ‘WI5’ AND Status = ‘Open’”).CopyToDataTable

If you won’t write CopyToDataTable at the end then we have to declare WIList as array of DataRow. I.e. DataRow[ ]

Now It´s OK. Thank for your help.

Is it necessary CopyToDataTable to create a new DataTable always?

I though that with this expresion was enought ( DataTable WIList =“Type = ‘WI5’ AND Status = ‘Open’”))

1 Like

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