>I have an issue where I need the dbused() function to return .f., indicating that the currently set to database is closed. Using the code below, I cannot achieve this. Using a "close databases all" is not a desirable option here.
>
>&& the database "dbcname" is already opened
>set data to dbcname
>close tables
>close indexes
>close format
>close database
>
>If I look at dbused('dbcname') now, it returns .t. Is there something else I can do to get this databse to close? Is there a way to inspect any references to the database that are preventing it from closing?
What about the Project window, is it open? If the database is referenced in the project, it won't "really" close unless you close the project too.
Hope this helps,