Array Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff

    #1

    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




    --
    Posted via a free Usenet account from http://www.teranews.com

  • Tiago Salgado

    #2
    Re: Array Question

    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 <none@none.comw rote:
    >
    ...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
    >
    >
    >
    >

    Comment

    • GhostInAK

      #3
      Re: Array Question

      Hello Jeff,

      You want a DataTable (which is an array of DataRows).

      Look into: SqlConnection, SqlCommand, SqlDataAdapter, and DataTable, DataRow

      -Boo
      ...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
      >

      Comment

      • Cor Ligthert [MVP]

        #4
        Re: Array Question

        Jeff,

        In addition to Boo, have a look at this.



        I hope this helps,

        Cor

        "Jeff" <none@none.coms chreef 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
        >

        Comment

        Working...