Results 1 to 2 of 2

Thread: Control name in a string

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241

    Post

    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.

  2. #2
    Guest

    Post

    You could do it in vb6 with CallByName


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

    Vincent van den Braken
    EMail: [email protected]
    ICQ: 15440110
    Homepage: http://www.azzmodan.demon.nl




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width