Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataEnvironment.Cursor.Database - how set?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01352072
Message ID:
01352193
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform