Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database and directory
Message
 
 
To
04/10/2002 06:20:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00707696
Message ID:
00707698
Views:
25
I would suggest you to put your DBCs,DBFs,CDXs in a subdirectory of your app directory so that you could make use of the SET PATH command.

If I have c:\myapp as my app directory, I should have C:\myapp\dbfiles and put all db files there.

In my main program, I have this one:
SET PATH TO dbfiles\
OPEN DATABASE mydatabase EXCLUSIVE
VALIDATA DATABASE RECOVER
HTH

>Hi
>
>My data bank(*.dbc), was built in C:\FACTURAC,
>everything works well in this directory,
>and if I do a 'Validate Database' it says that the Container is valid.
>
>Meanwhile, when i copy the entire directory C:\FACTURAC to C:\COPIACFAC, for example,
>and do a 'Validade Database' the VFP says that it can not find certain
>tables,
>and when I issue certain commands,
>the VFP asks for the whereabouts of that table.
>
>It seems that the Database has information from C:\FACTURAC,
>and dislikes changing places.
>
>How can I make the Database work (well) in any directory?
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform