Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot compile due to dataenvirnonment choosing folders
Message
 
À
07/05/1999 14:43:48
Henri Miceli
Sprachcaffe Languages Plus
Frankfurt, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00216184
Message ID:
00216248
Vues:
18
>what i am looking for : is there a way i can create and compile on one specific directory and then make the dataenvironment of the forms still look at the write folder.

In the LOAD of your forms, reset the table paths to the current directory with something like. You would have to set your dataenvironment so that it does not autoopen the tables. GCDBPATH contains the path to the tables and GCDBNAME is the name of the database. Note: the code only works with tables in a database, with free tables you have to add a bit more code.
* ENSURE DATABASE AND TABLES ARE POINTING TO CURRENT DIRECTORY
thisform.SetAll("Database",gcDbPath+gcDbname,"Cursor")

* open the tables again
thisform.dataenvironment.opentables()
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform