Control Array and For...Next Loop
Posted on 1998-08-05
I am taking a class that has requested us to create a checker board. I am having problems with clearing the board
and starting again. I have a group array of labels for the checker squares. I need to clear the BackColor from Blue to
white (vbwhite?), as well as set the focus to the TextBox control for the start value. Here is my sample. I can clear
the text boxes, but can not clear the labels and reset the program. I am only clearing one of the 15 checkboxes (and I made sure that the label array was set up correctly)
Private Sub Command1_Click()
'clear input amount and outputs
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Label1(Intex).BackColor = vbWhite