extract controls name

  • Thread starter Thread starter rathika
  • Start date Start date
R

rathika

hi

i have 240 textboxes in my form and i have named
them text1, text2.... text240 respectively.

now i need to programmatically change some
property of these controls

something like this
for 1 = 1 to 240

text.backcolor="red"

next

ie instead of writing 240 lines like this
text1.backcolor="red"
text2.backcolor="red"
.... text240.backcolor="red"

i need to use the loop and do it only once.

pls help.

rathika
 
Back
Top