Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Global Variables Between Applications

Question:
The VB4 help files state that Public Declarations in a General module are available to all forms and modules in all applications. Is this true? I can't access such variables across applications. What should I do? Any help would be appreciated.

Answer:
That statement is not quite true. Very little is automatically available between applications. Here is the real interpretation of that statement: any variable declared in the declarations section of a code module is available throughout that application. They may have been referring to the fact that you can then load a code module into multiple projects at the same time. That would, in effect, make the declaration available everywhere. This concept is similar to having a text file with some common declarations that you always add to your project before you start coding.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date