hello fellow earthlings!!
I have a slight problem .I have a control array with indexes 0 to 15 . now once u click on one of them , it must return the index value of that control and into a variable
Please help!!!
Printable View
hello fellow earthlings!!
I have a slight problem .I have a control array with indexes 0 to 15 . now once u click on one of them , it must return the index value of that control and into a variable
Please help!!!
You don't say what type of control it is, but assuming it's a command button, you can do something like this. (Note: VB automatically gives you the Index value in the Sub header for control arrays.)
Code:Private Sub cmdMyButton_Click(Index As Integer)
Dim intMyInt As Integer
intMyInt = Index
End Sub