>Hi George,
>I have VFP COM server and VFP front end.
>
Jano,
I re-reading your question, I noticed that you use AERROR() to retrieve the pieces of the error information and reference element 6. Depending on the type of error, this can be NULL or character. If character it's the help context ID.
Try using this as the error handler.
LPARAMETERS nError, cMethod, nLine
LOCAL lcmsg
lcmsg = TRANSFORM(nError) + ": " +;
MESSAGE() + " on line " + TRANSFORM(nLine)
COMRETURNERROR(cMethod, lcmsg)
RETURN
George
Ubi caritas et amor, deus ibi est