>In this situation, I just receive an error message after VFP runs UNLOCK... My problem is part of my solution is encapsulated in some class (Lock and Unlock records) and the other part (DELETE) doesn't... And I have to know If some error has occured when VFP DELETE the record...
Rodolfo,
You should consider using error handling with either TRY/CATCH or ON ERROR. Both of those are in the VFP documentation.