Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM error call?
Message
From
27/05/2004 10:18:05
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00907570
Message ID:
00907733
Views:
13
David

Thank you for your concise answer and function. Am I to assume that the parameters nError, cMethod, and nLine are populated as part of the built-in handling structure of COM or VFP?


>You should just put the code inside the class' Error() method. Any errors that >occur within the methods of the class will be cause that method to execute.
>define class mydll as ...
>function Error( nError, cMethod, nLine )
>strtofile( dtoc( datetime() ) + " error:" + transform( nError ) + " in " + ;
> cMethod + " at line " + transform( nLine ) + chr(13) + chr(10), "c:\errorlog.txt", .t. )
>endfuc
>enddefine

David
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform