Rajah
DIS Veteran
- Joined
- Aug 17, 1999
- Messages
- 9,633
I have 5 buttons. They're labled button1 button2 button3 button4 and button5.
I have some code associated with each button that, other than the number behind the word button, is exactly the same for each button.
Is there a way in VB to do something like take a variable "counter", set it to some number between 1 and 5, and change an attribute based on something like "button + counter".Caption = Hi!
I know how to do it in Cold Fusion, I know in other languages you can do it, but I know in yet others you can't. Anyone know the answer in Visual Basic?
I have some code associated with each button that, other than the number behind the word button, is exactly the same for each button.
Is there a way in VB to do something like take a variable "counter", set it to some number between 1 and 5, and change an attribute based on something like "button + counter".Caption = Hi!
I know how to do it in Cold Fusion, I know in other languages you can do it, but I know in yet others you can't. Anyone know the answer in Visual Basic?