Im sort of getting used to it , but when it comes to using a control array I find that the amount of extra code needed is ridiculous.

dim X as integer

X = index

for i = 1 to 20
commandbutton(X).text = i
commandbutton(X).tag = Y
X = X + 1
next i

turns into

commandbutton1.text = 1
commandbutton2.text = 2
commandbutton3.text = 3
commandbutton4.text = 4
commandbutton5.text = 5
commandbutton6.text = 6
commandbutton7.text = 7
commandbutton8.text = 8
commandbutton9.text = 9
commandbutton10.text = 10
commandbutton11.text = 11
commandbutton12.text = 12
commandbutton13.text = 13
commandbutton14.text = 14
commandbutton15.text = 15
commandbutton16.text = 16
commandbutton17.text = 17
commandbutton18.text = 18
commandbutton19.text = 19
commandbutton20.text = 20

commandbutton1.text = Y
commandbutton2.text = Y
commandbutton3.text = Y
commandbutton4.text = Y
commandbutton5.text = Y
commandbutton6.text = Y
commandbutton7.text = Y
commandbutton8.text = Y
commandbutton9.text = Y
commandbutton10.text = Y
commandbutton11.text = Y
commandbutton12.text = Y
commandbutton13.text = Y
commandbutton14.text = Y
commandbutton15.text = Y
commandbutton16.text = Y
commandbutton17.text = Y
commandbutton18.text = Y
commandbutton19.text = Y
commandbutton20.text = Y

its a ridiculous amount of code that replaces the control array.

and its extremely difficult to manage in code.


3/4 inch of dust build up on the moon in 4.527 billion years,LOL and QM is fantasy science.