General information
Category:
Coding, syntax & commands
If you use a data environment with your form, the path will be hard coded in the .DataBase property of each Cursor. You can set this property to your choice in the .BeforeOpenTables event of the Data Environment or in the Form.Load. If you do, set the DataEnvironment.AutoOpenTables = .F.
>Hi
> I don't know if this is the case, but the same happends to me, I was using a relative path to my database
>Example
> Project Files = c:\CC
> Data Files = C:\CC\DATA
>so i do a SET DEFA TO C:\CC
>and Set Path to DATA
>when i use windows open dialog and move, the default drive moves to.
>What i did is when i do this stuff i first get the current directory and then restore it.
>Bye
>
>>Dear all,
>>
>>I used 'set default to' specify the directory where my main program stays, and used 'set path to' to specify the place for its database. However, in execution, the program often asks about the place for the database. I don't know why this happen, as there is only one 'set path' command in the whole project.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only