Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Public Or Module Public
Message
 
À
17/02/1999 10:29:46
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00188387
Message ID:
00188397
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform