Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing Hard Code Paths in the Data Caption Property
Message
 
To
27/09/1999 10:46:25
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00269341
Message ID:
00269470
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform