|
-
Feb 17th, 2000, 10:44 PM
#1
Thread Starter
Hyperactive Member
Most of the VB Databases that I have created and worked with were done in VB4 and VB5. I'd like to begin using VB6,ADO and the DataReports. I'd like to use AppPath so that the database file can be found whereever I install the application. Is it possible to use AppPath with ADO and DataReportss?
Thanks, Rev. Michael L. Burns
-
Feb 17th, 2000, 11:12 PM
#2
New Member
Why not create a app class object that stores all path information, database connection and generally application global information that gets created at startup. this way you can simply reference g_app.appname or g_app.localconnection etc
Or store your path information in the registry instead of hard coding it
-
Feb 17th, 2000, 11:22 PM
#3
Thread Starter
Hyperactive Member
Thanks for the food for thought. Never thought of trying it this way. Learn something new everyday.
Rev. Michael L. Burns
-
Feb 21st, 2000, 01:33 AM
#4
-
Feb 22nd, 2000, 03:31 AM
#5
Lively Member
ofcourse you can !
and dont forget to add to the chris's great answe that you can use an ini file and with an api you can read text from it and then change the string as you like for each p.c
api:GETPROFILESTRING
------------------
shachar shaty
israel
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|