Code:
' move to the previous bet in the table
BetRow = (BetRow+tblBet.RowCount-1) Mod tblBet.RowCount
' move to the next Bet in the Table
BetRow = (BetRow+1) Mod tblBet.RowCount
I used this in my FlatBet Program which can be seen here
Flat Bet Investment