How convert dataset to arraylist?

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

I have 1 table in a dataset. How can I easily convert it to an arraylist
(with structure arraylist elements)?
 
VB Programmer said:
I have 1 table in a dataset. How can I easily convert it to an
arraylist (with structure arraylist elements)?

I don't know what you mean by "structure arraylist elements", but... :

al.AddRange(ds.Tables("mytable").Select)


Armin
 
VB Programer

dim ar as arraylist
For each dt as datatable in ds.tables
ar.add(dt)
Next

This can have sense when you want to remove some datatables from a a dataset
and place them originaly again in another one.

However as Kudzu said, what is your goal?

I hope this gives an idea

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top