Results 1 to 3 of 3

Thread: Passing Parameters

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Posts
    17

    Exclamation Passing Parameters

    I would like to ask how do i pass a parameter/value of a variable form one form to another form.
    For example i have a user's log in form, how do i save the user's name to another form once i log in? i want to know which user log in so that i can make preferences to that user. every user have different user. i have a mdiform.show after i log in?
    what are the functions i need to make and where shall i put it?

  2. #2
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    If your using multiple Forms, you could Dim a Public
    variable in a Module (That way the Variable is available to ALL
    other Forms).

  3. #3
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    It's probably better to use a module to store information like this. Otherwise, when the form is unloaded, you'll lose the information.
    If for some reason the other form is permanently loaded, you can make a Public variable on one form, and simply use:

    Form2.VarName = Form1.TextVar.Text


    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

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