controls
Burd
I think that you refer to my question in a thread.
I wanted to refer to many controls with the same action - like to change their color.
The solution is like this:
Define an array, for example : Dim boxes()
then allocate each control to an item in this array using strsplit:
boxes() = StrSplit("Form1,Panel2,TimeData2,MTime,Mspeed,Alt2,.................,Routetime",",")
then the action is simple:
For i = 10 To 35
Control(boxes(i)).Color = Rgb(255,255,255)
Control(boxes(i)).fontColor = Rgb(0,0,0)
Next i
The advantage of this solution is that it keeps the specific names of the controls, which you want to refer specifically with actions or values, without having to look-up every time in a list to find the control you need.
and It saves a lot of text....
edit: I just noticed that I wrote "next i " instead of just "next" (old habit from other languages), and the compiler doesn't mind !