>I want to create a routine that fixes some database problems has ocurred with our systems.
>If I execute validate database at run time, the error event doesn't fire, disabling error handle.
>Redirecting output to a file will be necessary to handle a text file... I thought that I had a more easy way to make this.
Writing and analyzing the text file probably is the only way to do this.
But I am not sure how you are going to use it, as VALIDATE DATABASE requires exclusive use of the database and VALIDATE DATABASE RECOVER cannot be run from the program - only from the Command Window.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison