Here's a taster. Name all your Buttons - Button1, Button2, Button3 etc.
Add a click event for each button as shown here.
Code:
For a = 1 To <u><i>number of buttons</i></u>
AddEvent("Button" & a,Click, "Btn_Click")
Next a
Your single Button click sub is as below.
Code:
Sub Btn_Click
a=Sender.text
End Sub
variable 'a' now holds the 'text' of the button that was clicked.
By using the 'Control' keyword you can access other properties from
the Button eg:
Code:
x=10
Control("Button" & x).Text="Hi"
This would alter the text of Button10 to 'Hi'
Hope I've made sense here ;-)
__________________
.
.
.

Don't ask, I'm fine, honest. !!
.
.
.

Just a little crazy at times
O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80
http://www.taximania.co.uk