>>>>Hi Stephane.
>>>>
>>>>>Is it possible, like with the "ON ERROR" command, to redefine or re-direct the Error Event of a form?
>>>>
>>>>No, but you can control what happens in the Error method.
>>>>
>>>OK!
>>>
>>>This leads to another question: Is it possible to know, before trying to open it, if a file (table) is already used by another user? There must be either an API call or a VFP native function that will tell me if a .dbf file is already in use.
>>>
>>>Thanks again, Stephane.
>>
>>used() :)
>No No,
>
>I'm sorry, maybe I haven't been specific.
>
>I'm working in a shared environment, so my problem is that I would like to know if another user on another computer as the file opened. We are using Windows NT 4.0 btw if this information helps.
>
>Thanks again, Stephane.
You can try to fopen() this file and then fclose().
If it's not broken, fix it until it is.
My Blog