General information
Category:
COM/DCOM and OLE Automation
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only