Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening Database
Message
 
To
15/02/1999 11:02:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00187694
Message ID:
00187702
Views:
18
Ernst,
If you want the cursors in your dataenvironments to use tables from a DBC other than the one specified at design time, I find I have to change the Cursor.Database property for each table (cursor) in the DE. For instance, I do this in the BeforeOpenTables event of the DE of one particular form:

THIS.Cursor1.Database = DBC()
THIS.Cursor2.Database = DBC()

This assumes that the exe already OPENed the correct DBC previously. There are other ways to accomplish this as well, as discussed here on the UT.

Mark

>I'm working in an environment with a developing directory and different directories with original data. For testing I have a database container with the same name as the database container in the real-data directory.
>For testing new program versions with the original data I have a link on my desktop with
>the program path c:\developdir\myapp.exe and
>execute in f:\originaldata\
>
>The problem is that the application under these circumstances always uses the data from my devoloping environment, also if i use set defa to F:\originaldata\in my main program. How can I force my application to use allways the database from the directory that i specify in my link ?
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform