Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Public Or Module Public
Message
 
To
17/02/1999 10:29:46
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00188387
Message ID:
00188397
Views:
14
>In the project we are working on, we currently use two different approaches to variables. The first one is making the variable public in a module and then putting it into a local variable on the current form. The second method is making the variable public on the form and then just read/write to it from anywhere else in the project. We would like to know the pros/cons of these two methods so that we can adopt one or the other. Thank you for your assistance in this matter!

To access a public property on a form, the form must be in memory. If it isn't, the form will automatically load and your property will be reinitialize.

Forms take much more resources than standard module.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform