I'm making a rs client and I have command buttons for the worlds.
I am setting all the world links for my buttons but i want to know if
there is a faster way. Is it possible to do something like...
Command1-80_Click() ??? (1-80) is command buttons 1-80
I want to do this instead of
Command1_Click()
Command2_Click()
Command3_Click() Ect...
Heres what I have so far...only 3 done i need 145 thats why I want to know if this it is possible.
Private Sub Command81_Click()
WebBrowser1.Navigate "http://" & GetPrefix(Command81.Caption) & ".runescape.com/l1,p0,j1"
End Sub
Private Sub Command82_Click()
WebBrowser1.Navigate "http://" & GetPrefix(Command82.Caption) & ".runescape.com/l1,p0,j1"
End Sub
Private Sub Command83_Click()
WebBrowser1.Navigate "http://" & GetPrefix(Command83.Caption) & ".runescape.com/l1,p0,j1"
End Sub
I am setting all the world links for my buttons but i want to know if
there is a faster way. Is it possible to do something like...
Command1-80_Click() ??? (1-80) is command buttons 1-80
I want to do this instead of
Command1_Click()
Command2_Click()
Command3_Click() Ect...
Heres what I have so far...only 3 done i need 145 thats why I want to know if this it is possible.
Private Sub Command81_Click()
WebBrowser1.Navigate "http://" & GetPrefix(Command81.Caption) & ".runescape.com/l1,p0,j1"
End Sub
Private Sub Command82_Click()
WebBrowser1.Navigate "http://" & GetPrefix(Command82.Caption) & ".runescape.com/l1,p0,j1"
End Sub
Private Sub Command83_Click()
WebBrowser1.Navigate "http://" & GetPrefix(Command83.Caption) & ".runescape.com/l1,p0,j1"
End Sub






