Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 3rd, 2006, 9:25 AM   #1
Indigno
Professional Programmer
 
Indigno's Avatar
 
Join Date: Dec 2005
Location: Anywhere non-productive
Posts: 267
Rep Power: 0 Indigno is an unknown quantity at this point
Send a message via AIM to Indigno Send a message via MSN to Indigno Send a message via Yahoo to Indigno
Exclamation Global Variables

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.
Indigno is offline   Reply With Quote
Old May 3rd, 2006, 9:29 AM   #2
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
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!
ReggaetonKing is offline   Reply With Quote
Old May 3rd, 2006, 12:36 PM   #3
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
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
Booooze is offline   Reply With Quote
Old May 3rd, 2006, 1:16 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old May 3rd, 2006, 2:51 PM   #5
ReubenK
Programmer
 
ReubenK's Avatar
 
Join Date: Mar 2006
Posts: 36
Rep Power: 0 ReubenK is on a distinguished road
Quote:
Originally Posted by DaWei
Booooze, you didn't make the hour deadline. Slap your own wrist with a ruler and say 10 "Hell Ya"s.
What can I say? lol
__________________
TechnoExtra
EbooksWhizzers

Kill all humans!
ReubenK is offline   Reply With Quote
Old May 3rd, 2006, 6:49 PM   #6
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Quote:
Originally Posted by DaWei
Booooze, you didn't make the hour deadline. Slap your own wrist with a ruler and say 10 "Hell Ya"s.
Yeah, I noticed, but I decided to try anyways
Booooze is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:52 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC