The information in this article applies to:
SYMPTOMSYou are programmatically creating a Dataenvironment object, and you add a Cursor object to it at run-time. If the Cursor object added uses a free table as its CursorSource, and you attempt to set its Database property to "" in its class definition, calling the OpenTables() method of the Dataenvironment object erroneously opens a dialog asking to locate a database. RESOLUTIONAs a workaround, do not set the Database property of the Cursor object in its class definition. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Visual FoxPro 6.0. MORE INFORMATIONSteps to Reproduce Behavior
This dialog displays in error since there should not be a database associated with a free table. As a workaround, run the preceding code after removing the DATABASE = "" code. The program then executes without error. REFERENCES© Microsoft Corporation 1998, All Rights Reserved. Additional query words: kbVFp500abug kbVFp600fix kbOOP KbDBFDBC kbDatabase
Keywords : |
Last Reviewed: August 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |