Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select control - string based

Status
Not open for further replies.

jpaulino

Programmer
May 28, 2002
26
0
0
DE
Hi experts,

I want to do something like this:

Dim x as byte
For x = 1 to 30
CType(“TextBox” & x, Textbox).Text = “Test nº “ & x
Next x

This doesn't work! How can I select one control based on a string? Can anyone help me with a sample code?

Tanks
Jorge
 
Have you taken a look at the FAQs?
There's one great FAQ by chrissie1.

Good luck.
 
you mixed up your words manssi, that should have been.

"There's one FAQ by the great chrissie1."


Christiaan Baes
Belgium

"My new site" - Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top