|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How convert dataset to arraylist?I have 1 table in a dataset. How can I easily convert it to an arraylist
(with structure arraylist elements)? "VB Programmer" <xDontEmai***@Dont.com> wrote in What type do you want to store in the arraylist? Why do you want to convert it to an arraylist.news:#3CYy4rfFHA.1444@TK2MSFTNGP10.phx.gbl: > I have 1 table in a dataset. How can I easily convert it to an > arraylist (with structure arraylist elements)? -- Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/ "Programming is an art form that fights back" Empower ASP.NET with IntraWeb http://www.atozed.com/IntraWeb/ "VB Programmer" <xDontEmai***@Dont.com> schrieb I don't know what you mean by "structure arraylist elements", but... :> I have 1 table in a dataset. How can I easily convert it to an > arraylist (with structure arraylist elements)? 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
Does String mashal default to UnmanagedType.LPTStr
(newbie warning) vb.net, stdregprov, deletekey - Invalid cast Loop thru all subfolders and list all files under each Transparent Color in an Icon questions about VB.NET, and uses in education Two quick Questions Need a Strategy to store the Single Quotes in the Database Is there code to convert a c# module to VB? Error: Cast From String to type Integer not valid Loading two separate instance of the same assembly |
|||||||||||||||||||||||