[Gambas-user] how to place code into events of an array of buttons?
Gianluigi
bagonergi at gmail.com
Wed Feb 2 11:31:19 CET 2022
Hi,
after 10:30 PM the neuron running in my head goes to sleep.
Therefore, as already suggested by BruceS, the code:
Private $aButtons[5] As Button
should be changed to:
Private $hButton As Button
and accordingly:
With $aButtons[n] = New Button(hPan2) As "btns"
with:
With $hButton = New Button(hPan2) As "btns"
Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220202/608d9b91/attachment.htm>
More information about the User
mailing list