Ludootje
02-01-2004, 12:44 PM
Hi,
What I'd like to do is something like this:
For i = 1 To 10
cmdi.caption = "this is button" & i
Next i
So if I create 10 buttons (cmd1, cmd2, ..., cmd10), the captions of each of them would be changed.
Something like this would also be nice:
Private sub Whatever()
i = txt_a_number.Text
Call DoSomething(i)
End Sub
Private Sub DoSomething(Number As Integer)
cmdNumber.Caption = Number
End Sub
Well you get the point I guess :)
Is it possible to do this?
Thanks.
What I'd like to do is something like this:
For i = 1 To 10
cmdi.caption = "this is button" & i
Next i
So if I create 10 buttons (cmd1, cmd2, ..., cmd10), the captions of each of them would be changed.
Something like this would also be nice:
Private sub Whatever()
i = txt_a_number.Text
Call DoSomething(i)
End Sub
Private Sub DoSomething(Number As Integer)
cmdNumber.Caption = Number
End Sub
Well you get the point I guess :)
Is it possible to do this?
Thanks.