I'm working on my poker clock again now that I found the source, and I need some help with loops. I have a label that has the round number on it, and labels for the small and large blinds for the current round, and for the next round.
I have if statements that work, but I want to use a loop instead, so the blinds can be customized, instead of fixed numbers.
Here's part of the if statement i have that works:
If tempckL = 1 Then
sBBox.Text = arrSB(tempckL - 1)
lBBox.Text = arrLB(tempckL - 1)
nSBBox.Text = arrSB(tempckL)
nLBBox.Text = arrLB(tempckL)
ElseIf tempckL = 2 Then
sBBox.Text = arrSB(tempckL - 1)
lBBox.Text = arrLB(tempckL - 1)
nSBBox.Text = arrSB(tempckL)
nLBBox.Text = arrLB(tempckL)
ElseIf tempckL = 3 Then
sBBox.Text = arrSB(tempckL - 1)
lBBox.Text = arrLB(tempckL - 1)
nSBBox.Text = arrSB(tempckL)
nLBBox.Text = arrLB(tempckL)
End If
tempckL is the label for the round, sBBox is the label for current small blind, lBBox is the label for the current large blind, nSBBox is the label for the next round's small blind, and nLBBox is the label for next round's large blind, arrSB is the array for the small blind values, and arrLB is the array for the large blind values.
What I need is a loop that checks the current round and displays the correct blind values for the current round, and for the next round without using 20 if statements. Any help is appreciated, thanks. I'm not sure if I should use a for loop, a do loop, or a while loop.