Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to close DBC
Message
 
 
To
26/12/2001 21:47:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00598340
Message ID:
00598349
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform