|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Array Question....beginner question - looking for easily worded answer. ...working with VB.NET 2005
I need to define some type of array to store a row from a database. The row will contain a mixture of variable types - integer and character, etc. I need the array to be available across all procedures on the page. Can someone give me the syntax? Thanks Jeff Try to use an ArrayList. Search it for it
-- Show quoteHide quoteTiago Salgado Blog: http://weblogs.pontonetpt.com/tiagosalgado On Sat, 19 Aug 2006 21:30:04 +0100, Jeff <n***@none.com> wrote: > > ...beginner question - looking for easily worded answer. ...working > with VB.NET 2005 > > I need to define some type of array to store a row from a database. The > row will contain a mixture of variable types - integer and > character, etc. I need the array to be available across all procedures > on the page. > > Can someone give me the syntax? > > Thanks > > Jeff > > > > Hello Jeff,
You want a DataTable (which is an array of DataRows). Look into: SqlConnection, SqlCommand, SqlDataAdapter, and DataTable, DataRow -Boo Show quoteHide quote > ...beginner question - looking for easily worded answer. ...working > with VB.NET 2005 > > I need to define some type of array to store a row from a database. > The row will contain a mixture of variable types - integer and > > character, etc. I need the array to be available across all procedures > on the page. > > Can someone give me the syntax? > > Thanks > > Jeff > Jeff,
In addition to Boo, have a look at this. http://www.vb-tips.com/dbpages.aspx?ID=1139f14a-c236-4ad7-8882-b1ed16424252 I hope this helps, Cor Show quoteHide quote "Jeff" <n***@none.com> schreef in bericht news:44e7594f$0$24997$88260bb3@free.teranews.com... > > ...beginner question - looking for easily worded answer. ...working with > VB.NET 2005 > > I need to define some type of array to store a row from a database. The > row will contain a mixture of variable types - integer and > character, etc. I need the array to be available across all procedures on > the page. > > Can someone give me the syntax? > > Thanks > > Jeff > > > > > -- > Posted via a free Usenet account from http://www.teranews.com > |
|||||||||||||||||||||||