PRB: AutoOpenTables/AutoCloseTables Ignored in ProgramID: Q141912 3.00 3.00b WINDOWS kbprg kbprb The information in this article applies to:
SYMPTOMSWhen creating a form visually, you discover that the data environment's AutoOpenTables property is set to True (.T.) by default and the tables and views will automatically be opened when the form is run. If the data environment is instantiated from within a program, the value of AutoOpenTables and AutoCloseTables is ignored.
WORKAROUNDCall the OPENTABLES or CLOSETABLES methods directly.
STATUSMicrosoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior1. Create a new program file, and type the following code:
2. Run the program.
3. Check the View window. You will see that no tables are opened. The Data 4. In the Command window type:
5. Note that the table is opened.
6. Inside the Command window, type:
7. The OpenTables/CloseTables must be called directly because
Additional reference words: 3.00 3.00b VFoxWin
KBCategory: kbprg kbprb
KBSubcategory: FxprgBrowse
|
Last Reviewed: January 9, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |