Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataEnvironment.Cursor.Database - how set?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01352072
Message ID:
01352193
Views:
22
>Evan,
>
>Thanks for your suggestions. You gave me an idea that seems to have worked:
>
>When I look at the properties of the cursors in the form's Data Environment in the Development Environment, for each cursor, the database property shows the full path to the test database on the network, using a mapped drive letter, e.g. Y:\....\dbname.dbc
>
>So, I unmapped Y; in Windows Explorer, then started VFP and ran the form. It ran fine. When I exited it and opened it with the form designer, and looked at the cursors in the Data Environment, they now all point to the database on my local computer.
>
>Hmmm
>
>Again, thanks for your response.

Jim,

I never trust any of this magic stuff that VFP does "for me" in the background. I use a form class that clears out the DE in the load event an rebuilds it according to the environment variables I have set at run time. Tha way I know in dev mode I am using the dev data and in rela mode I am usig the rela data and never shall I have the worng data loaded. This si one more reason to be usng a framework that handles all of this stuff for you.

JimB
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform