Home All Groups Group Topic Archive Search About
Author
19 Aug 2006 8:30 PM
Jeff
....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

Author
19 Aug 2006 8:08 PM
Tiago Salgado
Try to use an ArrayList. Search it for it

--
Tiago Salgado
Blog: http://weblogs.pontonetpt.com/tiagosalgado

On Sat, 19 Aug 2006 21:30:04 +0100, Jeff <n***@none.com> wrote:

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
>
>
>
>
Author
19 Aug 2006 10:01 PM
GhostInAK
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
>
Author
20 Aug 2006 8:16 AM
Cor Ligthert [MVP]
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
>