Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with set path to...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00054822
Message ID:
00054840
Views:
34
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
Map
View

Click here to load this message in the networking platform