Results 1 to 4 of 4

Thread: Pass variable content from form to form

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    South Agrica
    Posts
    2
    I am trying to pass a variable that I populated in a form and then closed that form, open a new form and use that variables content in the new form all in the same application. Please help if you can, thanx

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Posts
    81

    Here is the easy way

    public Form1Var as string
    form1var = "Stuff on form1"



    'new form
    dim newvar as string

    newvar = Form1.form1var
    -------------------------
    There is never only one right answer. That is the magic of programming.
    -------------------------

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    South Agrica
    Posts
    2

    Wink

    Many Thanx, it is easy when you know how

  4. #4
    Guest
    Or you can set the Tag property of the new Form to whatever you wanbt it to be.

    Code:
    Form2.Tag = MyVar
    Unload Me

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