Rod
Rod

Reputation: 15475

while(reader.read()) counter

If I'm using while(reader.read()...) is there an internal index available of do need to create my own int counter++ deal?

Upvotes: 0

Views: 856

Answers (2)

Sean Bright
Sean Bright

Reputation: 120704

Assuming that reader is an IDataReader then, no, there is no internal index available.

Upvotes: 1

Daniel Hilgarth
Daniel Hilgarth

Reputation: 174397

You need to create your own index variable.

Upvotes: 3

Related Questions