For i = 1 To 10 'makes 10 button
Dim buttonbordnummer As Button
buttonbordnummer.Initialize("ButtonBordNummer")
PanelValgBord.AddView(buttonbordnummer, 10dip, 10dip + 45dip * i, 60dip, 45dip)
buttonbordnummer.Text=i
Next
end sub
,---------------------------------------------
Sub ChangeTheColor
for a = 1 to 10
'I know that's wrong - But I can't figure out how to select the right button
buttonbordnummer.Text="test"
next
end sub
Pls help - I am newbie
Dim buttonbordnummer As Button
buttonbordnummer.Initialize("ButtonBordNummer")
PanelValgBord.AddView(buttonbordnummer, 10dip, 10dip + 45dip * i, 60dip, 45dip)
buttonbordnummer.Text=i
Next
end sub
,---------------------------------------------
Sub ChangeTheColor
for a = 1 to 10
'I know that's wrong - But I can't figure out how to select the right button
buttonbordnummer.Text="test"
next
end sub
Pls help - I am newbie