Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing Hard Code Paths in the Data Caption Property
Message
 
À
27/09/1999 10:46:25
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00269341
Message ID:
00269470
Vues:
23
>In the property window of a Data Caption in VB a field DATABASENAME includes the location of the database: X:\DIRECTORY
>Is it possible to place a variable at this location to remove the hard coding and place the location in a INI configuration file?

Sure you can and it is the recommanded way since location should change between dev and prod.

The only thing is that you don't have any automatic mechanism to do this. You will have to read from the INI file (using the GetPrivateProfileString API function) and put the value in you property.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform