|
-
Aug 9th, 2000, 08:53 PM
#1
Thread Starter
New Member
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???
-
Aug 9th, 2000, 08:59 PM
#2
Fanatic Member
Add a module and declare it in that as PUBLIC
DocZaf
{;->
-
Aug 10th, 2000, 03:24 AM
#3
Or the form2 can make a small text file send it to From1 and then after form1 reads it it erases it.
-
Aug 10th, 2000, 09:15 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|