Hi,
Something like this:
For i = 1 To 55
Button i .Enable = True
Next
Of course, this does not work.
So what the way?
Thanks
--
View this message in context:
http://gambas.8142.n7.nabble.com/How-to-Enable-Disable-55-buttons-in-a-few-string-of-code-tp42984.html
Sent from the
Hi,
Something like this:
For i = 1 To 55
Button i .Enable = True
Next
Of course, this does not work.
So what the way?
Thanks
For example:
Dim ctrl As Control
For Each ctrl In FMain.Controls
If InStr(ctrl.Name, Button) = 1 Then ctrl.Enabled = True
Next
On Sun, 25 Aug 2013, Kende Kriszti??n wrote:
Hi,
Something like this:
For i = 1 To 55
Button i .Enable = True
Next
Of course, this does not work.
So what the way?
Thanks
For example:
Dim ctrl As Control
For Each ctrl In FMain.Controls
If