Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing Databases

Status
Not open for further replies.

hayv

Programmer
Feb 27, 2001
15
CA
Is there anyway of closing an individual database, without the Close Databases command closing all free tables, when and when not a database is open and current. Would appreciate any help, can´t find anything in help or VFP manuals about it.
 
Hi my friend,

Is there anyway of closing an individual database, without the Close Databases command closing all free tables, when and when not a database is open and current


Close Databases command DOESN'T close all free tables when and when not a database is open and current. I think you misunderstood this command.
When you have a database opened and also free tables opened,
issuing the command
Code:
Close Databases
close only the current database and leave your free tables open and untouched. You just have to make sure that your database is the currently selected one before you issuing
Code:
Close Databases
command.
To do this, use the command
Code:
SET DATABASE TO Your_DataBaseName
Then when you use
Code:
Close Databases
, you will find that the data base "Your_DataBaseName" is closed but your free tables and the other databases opened [if any]
still open and this command DOESN'T affect them.
Hope this will help you my friend. Walid Magd
Engwam@Hotmail.com
 
Thanks Walid for your help, let me try this out then.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top