> 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 ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user