Spider
12-14-2002, 07:03 PM
I have a cmbButton_click event which calls three user defined subs. The final sub references a contol array consisting of several text boxes. How do I pass a contol array index to the nested procedure?
Example:
Private Sub cmbButton_Click()
.
.
.
Call FirstUserDefinedSub()
.
.
.
Call SecondUserDefinedSub()
.
.
.
And the last user defined sub...
Private Sub UserDefined
txtTextBox(index).Text = ""
txtTextBox(index).Text = ""
txtTextBox(index).Text = ""
End Sub
The above does not work, but shows what I would like to be able to do. I need to get the Index (subscript) value to the last nested sub procedure.
Example:
Private Sub cmbButton_Click()
.
.
.
Call FirstUserDefinedSub()
.
.
.
Call SecondUserDefinedSub()
.
.
.
And the last user defined sub...
Private Sub UserDefined
txtTextBox(index).Text = ""
txtTextBox(index).Text = ""
txtTextBox(index).Text = ""
End Sub
The above does not work, but shows what I would like to be able to do. I need to get the Index (subscript) value to the last nested sub procedure.