How To Assign Database Location Generically in Data Env (128996)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q128996 SUMMARY
The Data Environment contains information about all the tables, views, and
relationships that interact with a form. In the Form Designer, when a table
is added to the data environment, the database property of a cursor is
updated with the location and name of the DataBase container (.DBC), and
the path written in the DataBase property is set by default as an absolute
path.
If the database cannot be found when the form is opened, the error "Error
instantiating cursor object. Cannot find ..<database>" is displayed.
The sample code provided in this article modifies the path information
written in the Database property to fit your needs.
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbhowto KB128996 kbAudDeveloper |
---|
|