Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shared constants
Message
 
À
14/08/2005 14:51:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01040828
Message ID:
01040829
Vues:
15
Hola Hilmar,

I use a configuration file for this purpose, which is just an xml file with all the settings my app needs and their values. Easy enough to be edited with any text editor, yet does the trick.

Look for System.Configuration.ConfigurationSettings in help for more information.

Hope this helps!

Alex


>How can I define constants that are shared amongst several forms? In the same project, for a start.
>
>For example, I have several forms that access different tables, in the same Access database, so for simplicity, I would like to have a shared constant for a connection string (so that I can quick switch between two different connection strings between home and the academy where I am learning .NET).
Low-carb diet not working? Try the Low-food diet instead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform