How do I make a variable usable in multiple forms in Visual Basic 6?

4 Responses to “How do I make a variable usable in multiple forms in Visual Basic 6?”

Comments

  1. Ivanhoe Fats says:

    don’t understand the question

    do you mean file A contains the path to file B ?

  2. Nelsh says:

    Use a module. A module in VB6 is essentially common code that can be referenced by all classes & forms within your project.

  3. VB.NET Guru says:

    There are three ways of doing this.

    When you Define Form 2, set the Tag command with the value.

    or

    When you define Form 2 put the value in the New Parameters list

    or

    Define the Variable as Public in Form 2, after it is defined move the value to the variable.

  4. ilasabba says:

    You will find the answer here

Share Your Thoughts

You must be logged in to post a comment.