Hi, and tnx 4 your time!
I have a small problem!
I need to refer to some controls dynamically, lets check to the example!
I have 3 disabled combobox (cb_1, cb_2, cb_3) that I need to reenable!
dim i as integer
for i = 1 to 3
["cb_" & i].enabled = true
next
I know that in Flash you can refer to a control simply using "[STRING]." it's possible to do in some wai also in VB and VBA???
Actually I use:
dim s as string
dim ctr as control
for i = 1 to 3
s="cb:_" & i
for each ctr in me.controls
if ctr.name=s then
ctr.enabled = true
goto cont
end if
next
cont:
next
LET ME KNOW!!!!