extract controls name

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top