Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database Location
Message
 
To
19/04/2001 10:52:56
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00497269
Message ID:
00497273
Views:
12
>Hello Friends!
>
>1) I've created an EXE file for my application using FoxPro Setup Wizard.
>
> The problem occurs when I move my EXE file to another folder , I can't find my Database.
>
> What possible solutions can be in order to solve this problem .
>
>2)
> I can't find examples for following functions:
>
> a) SYS(2014)
> b) FullPath
>
>Thanks in advance.

I use an INI file found in the same directory as my config.fpw (which also is the same directory as the exe). The ini file is read before hand to tell the application where the data is located. The application has a data object that reads the ini file and then stores the paths as part of the data object. So when the user installs the app the installation program updates the ini file. If the user moves the data then the ini file is updated also. This is one approach I am sure there are many.

To find the ini file I use:
pcIniFile = JUSTPATH(SYS(2019)) + '\APPLIC.INI'


Another could involve the use of writting to the registry the data locations and having you app update the registry when data is moved around.

HTH
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform