Call cell from data table with Variables

I need to use variables to call information from a data table. Can this be done?


Which type of variables do you use : in_dtItems, RowCount and ColumnCount?

If in_dtItems is DataTable and RowCount and ColumnCount are String type and store index value of row or column, the following will work.

in_dtItems( CInt(RowCount))( CInt(ColumnCount)).ToString


in_dtItems.Rows(CInt(RowCount))( CInt(ColumnCount)).ToString


1 Like

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