Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table is in use even though USED() says FALSE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Table is in use even though USED() says FALSE
Divers
Thread ID:
00410426
Message ID:
00410426
Vues:
44
Hi All,

sgctempPath="c\windows\TEMP\"

IF FILE(sgctempPath+"LasTemp.DBC")
SET DATABASE TO sgctempPath+"LasTemp"
CLOSE DATABASE
DELETE DATABASE sgctempPath+"LasTemp" DELETETABLES
ENDIF

Even though I try to close the database it is still open
DBUSED(sgctempPath+"LasTemp") is .T.,

The problem goes away when I close VFP, coming back and
run the same code does not produce any problem. The same problem
occurs with a table

IF USED(tcAlias)
SELECT (tcAlias)
USE
ENDIF

DELETE FILE (sgctempPath+tcAlias+".dbf")

I am getting an error message that file is in use.

Any ideas ?

Thanks

Doron
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform