Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

increment a counter in a record set

 
Reggie McDougal
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Reggie McDougal
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a dumb ass

countRecord = countRecord + 1

works fine
 
Barry Higgins
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or even just countRecord++; on it's own
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic