Odbc Data Reader

  • Thread starter Thread starter Roger Cantillo
  • Start date Start date
R

Roger Cantillo

Hi,
When I use a data reader, I would like to bounce around the current row. Is
this possible? If so, How?

Roger
 
What do you mean by "bounce"? Do you mean skip?

If so you can just Read() and it will go to the next row?

DataReader is forward only so all you can do is iterate
thru from beginning to end.
Jon Paugh
 
What I mean by bounce is read column values at random.

ex:
1: dataReader.Read()
2: str1 = dataReader.GetString(0)
3: str2 = dataReader.GetString(5)
4: str3 = dataReader.GetString(3)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top