DataTable.Select issue - From tutorial


#1

I am working on the tutorial (Page 10 of the lvl3 advanced training assignment 1 walk though) and am having issues getting the DataTable.Select call to work with assign. I cannot for the life of me figure out what I am missing to get it to work. The error I am getting is referencing a multi dimensional array, but the types for both are System.Data.DataTable what could be causing this issue?


#2

Hi @LeftBrainCo

The WiLIst must be a DataRow[] and not a dataTable, change the datatype of WIList to array of and then in the pop up choose datarow.

Regards,
Reda


#3

Or you can add
Dt_wls_list.select(your condition).copytodatatable


#4

yes but in the spec of the first assignment the WIList must be an DataRow[], other than that it will work either ways.


#5

Reading back though the tutorial I must have skipped a selection. For some reason I though it was supposed to go from the table directly to the filter.


#6

I added this one to my cheat sheet great tip!


#7

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