Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Development pathing
Message
De
11/03/1996 11:46:15
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00000249
Message ID:
00000252
Vues:
53
>>I am looking for a good 'generic' method of Pathing.

In my case, I have to point to a separate set of data when developing and to the production data when in production. So, I suppose this is what you are looking for either and here's a little something.

When you build your form, just say ThisForm.DataEnvironment.AutoOpenTables=.F. and in the ThisForm.Load() method of BaseForm, you will fix the path of every table in the DataEnvironment and then you will issue, at the end of the load, ThisForm.DataEnvironment.OpenTables().

To know which path to use, we are reading the INI file that is in the same directory as the EXE. Since we have two directory, which mean two EXE and two INI, one INI can then point to a different path.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform