Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tip on how to fix database path in Dataenvironment
Message
From
03/07/1997 12:47:40
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
 
 
To
03/07/1997 11:51:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00038538
Message ID:
00038550
Views:
38
>Many of you had been concerned with the Database property which is read-only at design time... the end result of this is that people with two copies of their dataset (one for development and one for production), even across a network, will have the app look at the original development copy of the dataset..bad indeed!
>
>The best solution I could come up with is the hardcode the following into the BeforeOpenTables() event of the DE of each form:
>
>this.Cursor1.Database = "..\Data\Main.dbc"
>this.Cursor2.Database = "..\Data\Main.dbc"
> ... etc.
>
>This seems to work very well, even if you move your distribution directory!


Thanks !! This is very useful, Actually you can put it in KB....
Previous
Reply
Map
View

Click here to load this message in the networking platform