Microsoft KB Archive/156234

= PRB: CLOSE DATABASE ALL Does Not Close All Databases =

Article ID: 156234

Article Last Modified on 10/15/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q156234



SYMPTOMS
Using the CLOSE DATABASE ALL command to close a database that is opened from Project Manager does not close the database.



RESOLUTION
To close databases opened from the Project Manager, you must close the database from the Project Manager or close the project.



STATUS
This behavior is by design.



MORE INFORMATION
When you open a database in Visual FoxPro, the database name appears in the Database combo box in the Standard toolbar. If you have multiple databases open, you can make a database the active database by selecting the name of the database in the Database combo box. In order to close all the databases at once, you can use the CLOSE DATABASE ALL command. However, if you are closing a database opened from the Project Manager, the CLOSE DATABASE or CLOSE DATABASE ALL commands do not close the database. Instead, they set the database as an inactive database. When you click the Database drop-down list box in the Standard toolbar, you can still select the database.

The CLOSE DATABASE or CLOSE DATABASE ALL commands close all databases that were opened via any method other than the Project Manager.

Steps to Reproduce Behavior
 Open the Tastrade.pjx project located in the Samples\Tastrade directory under the Visual FoxPro directory. Open the Tastrade database from the open button in the Project Manager.  In the Command window enter the following command: CLOSE DATABASE ALL  Check the Database drop-down list box in the Standard toolbar to see if the database is open.

The database still appears as open in the Database drop-down list box.

Additional query words: VfoxWin ssafe

Keywords: KB156234

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.