Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 25th, 2005, 05:31 PM
Frost Frost is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 448 Frost User rank is Corporal (100 - 500 Reputation Level)Frost User rank is Corporal (100 - 500 Reputation Level)Frost User rank is Corporal (100 - 500 Reputation Level)Frost User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 27 m 31 sec
Reputation Power: 8
Passing a Variable from one Project to another

Hi,

I have two seperate projects. One project is the main project that contains one userform and references the other project within it for it's funtionality. Essencially the main project is just a user interface that references many other projects.

What I have is a textbox in the main form that I want populated from a module from another project and module that is fired. However it does not see the textbox when the module is run from the other form.

How do I reference the main form? Example:

MainUserForm.textbox1 = otherproject.theModule.MyVariable

I hope that makes sense.

Reply With Quote
  #2  
Old February 25th, 2005, 05:51 PM
catbollu's Avatar
catbollu catbollu is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 199 catbollu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 39 m 3 sec
Reputation Power: 5
Quote:
Originally Posted by Frost
Hi,

I have two seperate projects. One project is the main project that contains one userform and references the other project within it for it's funtionality. Essencially the main project is just a user interface that references many other projects.

What I have is a textbox in the main form that I want populated from a module from another project and module that is fired. However it does not see the textbox when the module is run from the other form.

How do I reference the main form? Example:

MainUserForm.textbox1 = otherproject.theModule.MyVariable

I hope that makes sense.


I usually make a modal or global Module to pass variables

Reply With Quote
  #3  
Old February 25th, 2005, 06:05 PM
Frost Frost is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 448 Frost User rank is Corporal (100 - 500 Reputation Level)Frost User rank is Corporal (100 - 500 Reputation Level)Frost User rank is Corporal (100 - 500 Reputation Level)Frost User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 27 m 31 sec
Reputation Power: 8
Quote:
Originally Posted by catbollu
I usually make a modal or global Module to pass variables


I've never used a global Module before. I thought if you set your functions within your project to Public that it opened them up to other projects. Or does that just make them available to other modules in the same project?

Away, if you could give me an example of a global module that would be great, the help doesn't mention much about them.

Thanks

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Passing a Variable from one Project to another


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT