>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