aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
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://aspose.com/file-tools
 
subject: increment a counter in a record set