File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes increment a counter in a record set Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "increment a counter in a record set" Watch "increment a counter in a record set" New topic
Author

increment a counter in a record set

Reggie McDougal
Ranch Hand

Joined: Sep 27, 2004
Posts: 69
I'm tring to id certian rows in a record set but my code returns the follwing, the count does not increment with each iteration of a row in a recordset. Can some one help me with this?

0
0
0
0
0




You can never drink too much
Reggie McDougal
Ranch Hand

Joined: Sep 27, 2004
Posts: 69
I'm a dumb ass

countRecord = countRecord + 1

works fine
Barry Higgins
Ranch Hand

Joined: Jun 05, 2003
Posts: 89
Or even just countRecord++; on it's own
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: increment a counter in a record set
 
Similar Threads
Am I doing fine in findCriteria()
Regarding division by zero
post increment
Question regarding "for" loops
Need Explanation of unpredicted output even if methods are synchronized