Accesing Values in DataTable Column

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can i access all the values in a particular column of a DataTable.
How can i then store these values in an array.
 
Job,

A datatable is a collection of items in a collection (array) of rows

Therefore
datatable.rows(0).item(0) is the first collection item in the first row.

Bringing this to an array is almost forever useless because it is already an
collection.

There is not a one by one inbuild convert function for this, however when
you really want it you can do it using a simple for index loop or a for each
loop depending on the type of array you want to make.

I hope this helps,

Cor
 
Thanks

Cor Ligthert said:
Job,

A datatable is a collection of items in a collection (array) of rows

Therefore
datatable.rows(0).item(0) is the first collection item in the first row.

Bringing this to an array is almost forever useless because it is already an
collection.

There is not a one by one inbuild convert function for this, however when
you really want it you can do it using a simple for index loop or a for each
loop depending on the type of array you want to make.

I hope this helps,

Cor
 
Back
Top