Results 1 to 3 of 3
  1. #1
    webman59
    Guest

    Passing Parameters between forms

    Hello all,
    I am tring to pass a variable from one form to another form and I need to use it in the child form's load event. How can I do this? When I try to use this code it give me an error:

    ****Form 1 cmd_Test_click()*******
    Dim sStringTest as String
    sStringTest = "username"

    frmDisplay.show modal , sStringTest

    *****Form 2 Load(prmUsername as string)****

    this code gives me an error...any help would be appricated.

    Thanks

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Passing Parameters between forms

    Either use global variables or use the tag property of one of the forms.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    webman59
    Guest

    Re: Passing Parameters between forms

    THANKS!

Posting Permissions

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