Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with using dataenvironment
Message
From
14/06/2006 10:27:22
 
 
To
14/06/2006 09:38:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01128976
Message ID:
01129002
Views:
17
>>>>I add two tables with master-detail relation in DataEnvironment of a form. The two tables and their DBC are in a subdirectory. I build the application, run it. It works fine. But if I move the application along with its subdirectories to another location, I get "Error instantiating cursor object, cannot find (current path)\(dbc file)" when I run it.
>>>>
>>>>What is the cause of the problem? How can I fix the problem using the DataEnvironment? Thanks.
>>>
>>>Perhaps it helps to make sure you have a SET PATH that finds the files, e.g.:
>>>
>>>
>>>set path to data, help
>>>
>>>
>>>Note that I used relative paths in the above example.
>>
>>I had SET PATH at the start of the appliaction. It doesn't make a difference.
>
>Check the CursorSource property of Cursor objects in the DE of the form. This property is Read/Write at run time but Read-only at design. Usually the value of this property is the 'hard-coded' path to the table.

I edited the CursorSource property as described in MS KB article 229779. It doesn't solve the problem, though the error message is a little different. After I changed the CursorSource from "table1" to "..\data\table1" (or the full path) by editing scx file, the new error says that it cannot find table1 in the dbc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform