Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program uses wrong files
Message
From
23/04/1998 15:29:47
 
 
To
23/04/1998 15:23:10
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00094430
Message ID:
00094433
Views:
24
>FoxPros -
>
>I have a development copy of an application on my local C: drive.
>The application itself is on the client's server - I can map a drive to
>their server and run the app on their server with their data. The
>application (VFP5) has been compiled to an .EXE.
>
>Here's the problem - even though I run their copy of the app, it still
>finds (and uses) the databases from my local drive. I'm pretty sure this
>is because references to the actual table locations are included in the
>.DBC. If I temporarily rename my local directory, of course the app can't
>find the files and uses the ones in the default location on the client's
>server, without a complaint about "Can't find..."
>
>How should I be handling this? I build the .EXE file on my local drive
>and then just copy the it to their server. I don't buile the .EXE file on
>THEIR server ("Project has moved, make X:\... the home directory?")
>because none of the forms, etc are on their server.
>
>Don Smith

The generic way is to reset programmatically Database (dbc-tables) or CursorSource (free table) properties for all cursors in all Form.DE. The appropriate place to do it is Form.DataEnvironment.BeforeOpenTables event
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform