Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Path in View
Message
De
07/06/1998 07:14:50
 
 
À
07/06/1998 06:48:15
Thongchai Prertpornpan
Grolier International, Inc.
Bangkok, Thailande
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00105595
Message ID:
00105599
Vues:
16
>what do i do wrong? does vfp's view remember its environment
>when it is created?

Hello Thongchai,

Yes indeed. Visual FoxPro stores the entire path then it tries to evaluate this path as a relative path. If it can find the data at the full path location, it will get the data from there; if it can't it will turn to the relative path; if it still can't, it will raise an error.

If you want VFP to go straight to the data path you have specified, than you need to work at the Init() event of the cursor itself and change the cursor source property to the exact location. Of course, you need to turn off the AutoOpenTables (.F.) and at the Init event() of the DataEnvironment you need to call the OpenTables() method.

I hope, it's going to help you.

Pat
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform