>Hi,
>
>I have seen one can pass its own errormessage instead of the VFP Errormessage text to your error catcher, something like : Error 8000 = "Cannot update tabel myNames"
>Where the text is a variable.
>Errorcatcher is invoked with
>On Error Do ERRORLOGGING With Error( ), Message( ), Message(1), Program( ), Lineno( ), Sys(0)
>In your errorlogging the parameter tcMessage will than be replaced with this variable, provided you give the correct Errornumber instead of the VFP Errornumber.
>
>Anybody around who can give me a hand, which errornumber I should pass to get this done?
Omit the number and just pass the message:
Error "your error message"