Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to close DBC
Message
 
 
À
26/12/2001 21:47:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00598340
Message ID:
00598349
Vues:
24
Alejandro,

Could be a problem, what you used VFP reserved word for name of your database "NAME"? If it's not too late, try to change name of database to something different and try again.

>I have a DBC open and try to close it in the following way but it remains open:
>
>tcDBCName = 'c:\path\Name.dbc' && CURDIR() is not c:\path
>* Note: the DBC is open
>IF DBUsed(JustStem(tcDBCName))
> SET DATABASE TO (JustStem(tcDBCName))
> CLOSE DATABASES
>ENDIF
>DELETE FILE ForceExt(tcDBCName,'DBC') && Error ocurrs because file is in use
>DELETE FILE ForceExt(tcDBCName,'DCT')
>DELETE FILE ForceExt(tcDBCName,'DCX')
>
>Thanks, Alex
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform