Results 1 to 4 of 4

Thread: fresh new.....

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    1

    Talking

    hello guys,
    I'm a fresh one in VB scripting and i have a small pbm..

    Lets say a Vb application that consist of 2 forms, I need to use a variable that is defined in the form1 as an integer (say x), I need to use it in form2, run some calculations on it, change it’s value and still have it with it’s new value when I unload form2 and go back to form1.
    I tried defining it as a global variable but that didn’t work…when ever i try to ref to this (x)var out side it's parent form (form1), the other form doesn't recognize it...
    ???where should i have it defined to gain access to it from any form???

    Cheers...
    Signal

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Add a module and declare it in that as PUBLIC

    DocZaf
    {;->

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Or the form2 can make a small text file send it to From1 and then after form1 reads it it erases it.

  4. #4
    Guest
    Declaring it as Global or Public will not make a difference. Just make sure it's in a module.

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