Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When Close Tables Doesn't
Message
De
13/07/2005 09:21:59
 
 
À
13/07/2005 09:05:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01031910
Message ID:
01032179
Vues:
19
The help on CLOSE TABLES says:

a) closes all tables in the active database. Closes all free tables if no database is open/choosen.
b) don't use with transactions, as this will throw an error.

CLOSE TABLES will close a cursor, if it is just a filter to a table of the active database, but leaves it open as it does with free tables, if it is a "real" cursor. The difference is DBF("alias") is a table file name, if it is a filter, but DBF("alias") is the name of a TMP file, if it's not a filter.

What you wanted maybe was CLOSE TABLES ALL, which closes tables of the active database and free tables or cursors, but leaves open tables of other databases. And if you really want to close all, then use CLEAR ALL, or switch to each database ADBUSED() gives you and CLOSE TABLES ALL, as CLEAR ALL of course clears a bit more than just the active datasession of all open tables.

Bye, Olaf.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform