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