Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBCs drive me nuts!
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
DBCs drive me nuts!
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01496239
Message ID:
01496239
Views:
147
I am going in circles with my DBC. In Design Mode, I am going round and round. It also is affecting the Production mode. This is why I've never liked FoxPro's DBCs.

I wrote in the following in the Form's LOAD method:
OPEN DATABASE C:\Karls\Data\Karls.DBC
I initially had a DBC in a folder called Data, as follows: C:\Dev\Karls\Data, however, I got rid of it and am going directly to the folder called C:\Karls\Data where the production data will reside. This is not a big time client who would want or even know what a server is; this is data which resides on the client's own desktop.

I continually get this error when I bring up my form:
Error instantiating cursor object. Cannot find
C:\Karls\Data|Orders in C:\Karls\Data\Karls.dbc.
The data is there and all I do is hit the LOCATE button to lead the program to it. But, why won't this work automatically?
Here is what I have in the Form's DataEnvironment.BeforeOpenTables method:
This.Cursor1.Database="C:\Karls\Data\Karls.dbc"
This.cursor1.CursorSource="C:\Karls\Data\Orders"
This.Cursor2.Database="C:\Karls\Data\Karls.dbc"
This.cursor2.CursorSource="C:\Karls\Data\Customers"
This.cursor3.CursorSource="C:\Karls\Data\States"
This.cursor4.CursorSource="C:\Karls\Data\Warranty"
Next
Reply
Map
View

Click here to load this message in the networking platform