Access to Program Varibales.


Hi everybody ,

I need you help for my problem. I need the following functionality of a program: I built a simple user form with one text box and a command button. In this text box, I want to enter a variable name used in my program and after clicking the command button, the program should display the content of that variable. So, I will have the varibale name in a string. How do I get the content of a variable if I have the variable name specified in a string? Are there any special functions in VB for this ?

Thank you,

Comments

  • :
    : Hi everybody ,
    :
    : I need you help for my problem. I need the following
    : functionality of a program: I built a simple user form with one text
    : box and a command button. In this text box, I want to enter a
    : variable name used in my program and after clicking the command
    : button, the program should display the content of that variable. So,
    : I will have the varibale name in a string. How do I get the content
    : of a variable if I have the variable name specified in a string? Are
    : there any special functions in VB for this ?
    :
    : Thank you,
    :

    You should be able to just access the form and read it. If your text/command form is called InputForm, and you store it in a string variable called InputName, then you should be able to access it by just pointing to 'InputForm.InputName.Text'
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion