>Ok now we are getting somewhere, If there is a file open by the system and I try to delete it .. Foxpro gives me a message "File is in use" This is the dialog I want to suppress because it will not allow the program to continue unless you click 'ok'. Is there a way to do this?
To answer this specifically, all you need to do in the Error Event or Handler would be to check the value of the error number parameter (in this case 108 is the error number) and reaction accordingly. Now if the file deletion is occurring within a class, you could create a custom property to handle this and check its value in the following line of code to make sure that the handler wasn't tripped, setting it in the error handler in the event that the error occurs.
George
Ubi caritas et amor, deus ibi est