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'.
Thanks!
lakshman
(Ganta lakshman)
2
@pi1oscar
Here, WIList is of type DataTable but not dataTable [ ].
dataTable is nothing but array of Data rows. I.e. DataRow
lakshman
(Ganta lakshman)
3
@pi1oscar
DataTable WIList = dt_Wls.select(“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 = dt_Wls.select(“Type = ‘WI5’ AND Status = ‘Open’”))
1 Like
system
(system)
Closed
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.