How to initialize array of Datatables

I noticed it’s possible to create variables of the type “System.Data.Datatable”.

I wanted to fill it up with datables and then iterate them, how can I do it?

@Gabriel_Wisniewski

not array but you can createa list.Array is immutable …to create list of datatables you have to select list and then datatable …To Intialize use New List(Of Datatable)

If you want array only then use this


But you cannot add more datatables as required later to array

cheers

1 Like

Can you provide the full name of this variable type?

@Gabriel_Wisniewski

System.Collections.Generic.List

cheers

1 Like

I keep getting this error when I select this variable type, do you know any way to fix it?

@Gabriel_Wisniewski

You see a dropdown on top …Please select datatable there and then click ok

cheers

1 Like

Hi,

How about DataSet and DataTableCollection class?

We can iterate multiple DataTables as the following.

Sample20221221-2aL.zip (3.0 KB)

Regards,

1 Like

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