Hello,
I'm trying to create and capture click events in B4a from a list of five buttons programatically added (not designer mode): The program objetive is simple: Write into clicked button a random number
....
for a=1 to 5
activity.addview(????)
next
.....
Sub Button_Click ' tries to capture a click event of whichever button clicked... fail..
Dim b as button
b.text=rnd(1,50)
End Sub
Please, could someone explain me how to implement it as easy as possible? I have read some examples but are not what I need (not sure... be patient, please )
Thanks a lot.
I'm trying to create and capture click events in B4a from a list of five buttons programatically added (not designer mode): The program objetive is simple: Write into clicked button a random number
....
for a=1 to 5
activity.addview(????)
next
.....
Sub Button_Click ' tries to capture a click event of whichever button clicked... fail..
Dim b as button
b.text=rnd(1,50)
End Sub
Please, could someone explain me how to implement it as easy as possible? I have read some examples but are not what I need (not sure... be patient, please )
Thanks a lot.