Using datareader.getvalues

Results 1 to 2 of 2

Thread: Using datareader.getvalues

  1. #1
    Join Date
    Dec 1969

    Default Using datareader.getvalues

    hi<BR> i understand that<BR>datareader.getvalues method is used get all the column values for a row and store it an array.Is that correct???<BR><BR>I would like to know how to use in would be thank full if some body could post some sample code to show me how to use it.<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Using datareader.getvalues

    Dim rdr As OleDbDataReader = cmd.ExecuteReader()<BR>Dim aData(rdr.FieldCount – 1) As Object<BR>While rdr.Read<BR> rdr.GetValues(aData)<BR> Label1.Text = aData(0).ToString<BR> Label2.Text = aData(1).ToString<BR>End While

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts