Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot compile due to dataenvirnonment choosing folders
Message
 
 
To
07/05/1999 14:43:48
Henri Miceli
Sprachcaffe Languages Plus
Frankfurt, Germany
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00216184
Message ID:
00216248
Views:
19
>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()
Previous
Reply
Map
View

Click here to load this message in the networking platform