PDA

Click to See Complete Forum and Search --> : Control name in a string


David Laplante
Nov 10th, 1999, 10:52 PM
In a variable (string) called MyControlName, I have the following value: "txtName".

I would like to make that control invisible. How could I use the properties of this control by reading its name from that string's content? (hope I made myself clear)

MyControlName.visible = false won't work, of course.

Thanks.

Nov 11th, 1999, 04:53 PM
You could do it in vb6 with CallByName


------------------

Vincent van den Braken
EMail: azzmodan@azzmodan.demon.nl
ICQ: 15440110 (http://www.icq.com/15440110)
Homepage: http://www.azzmodan.demon.nl