Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COMRETURNERROR don't work
Message
 
To
08/03/2000 01:34:35
Jan Korecko
Coopex Soft S.R.O.
Presov, Slovakia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00342708
Message ID:
00343197
Views:
22
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform