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, 2004, 6:54 PM   #1
zabador
Newbie
 
Join Date: May 2004
Posts: 1
Rep Power: 0 zabador is on a distinguished road
ok i got 2 forms going and i need a integer type variable with an array 0 to 5 that works in all subs and both forms. whats the code n where do i put it?
zabador is offline   Reply With Quote
Old May 4th, 2004, 1:20 PM   #2
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,623
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
well the only way i can get this to work is if i use a module to do it. so i recommend adding a module and do the
Option Explicit
Public intarray(0 To 5) As Integer
in the module cause when i try there is no way to run a public variable declared in one form and use it in another. i would try this and see if it works for you. im sure it will and you jst use the variable like you would if it was declared in the form they will know what it is
to add a module jst go the project button and then go down to add module and then it will give you a choice of different modules jst choose the basic normal module and then add the code i posted above in there and use it from there hope this helps and good luck
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 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 4:34 PM.

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