[Gambas-user] How to Enable/Disable 55 buttons in a few string of code?

2013-08-25 Thread abbat81
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

Re: [Gambas-user] How to Enable/Disable 55 buttons in a few string of code?

2013-08-25 Thread Kende KrisztiƔn
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

Re: [Gambas-user] How to Enable/Disable 55 buttons in a few string of code?

2013-08-25 Thread Tobias Boege
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