Board index » delphi » Problem with TTable.DeleteTable

Problem with TTable.DeleteTable

    If all table are closed which parameters can failed DeleteTable
Functions.

Francois Cossette

 

Re:Problem with TTable.DeleteTable


Permission denied.

after test it`s seem to have a problem with Index file date and time.
The problem seem to be resolve iif i change the file date and time before
closing file
Do you have any idea of that problem

Best regards

Francois Cossette

Quote
"Bill Todd (TeamB)" wrote:
> If DeleteTable fails an exception should be raised. What is the error
> message?

> --
> Bill

Re:Problem with TTable.DeleteTable


If DeleteTable fails an exception should be raised. What is the error
message?

--
Bill

Re:Problem with TTable.DeleteTable


That sounds like something still has the table open. It may be that the BDE
still has one or more of the files open even though you have closed the
table or it may be that the operating system just thinks the files are still
in use for some reason. You might try closing your TDatabase and see if that
helps. If not, try Session.Close and see if that releases the file.

--
Bill

Other Threads