![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Professional Programmer
|
I need help on making a global variable. I need this variable to be made in form 1, but accessible in form2. I need to know how to do this in the next hour or so.
|
|
|
|
|
|
#2 |
|
Sexy Programmer
|
it should be accessible in the other form if it's the same project. or you can always use a sub function in form1 to make a reference to variable to form2. In order words, transfer the value of the variable.
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#3 |
|
Expert Programmer
|
You could try putting it in a module, or putting it at the top under option explicit. I think one of those will do it. I haven't done vb for a while :p
|
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Booooze, you didn't make the hour deadline. Slap your own wrist with a ruler and say 10 "Hell Ya"s.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 | |
|
Programmer
Join Date: Mar 2006
Posts: 36
Rep Power: 0
![]() |
Quote:
![]() |
|
|
|
|
|
|
#6 | |
|
Expert Programmer
|
Quote:
![]() |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|