pass optional error object
Posted on 2005-03-17
I rather new to VB.Net and am trying to make an "Error Logging" module that I can use in many different programs.
The Parms for the main sub are as follows..
Public Sub Logger(ByVal inFunction As String, Optional ByVal inLogText As String = "", Optional ByVal inErr As ErrObject = ?????)
' @parm inFunction String description of the function that is calling this.
' @parm inLogText Optional String description to be added to the logged output
' @parm inErr Optional Error Number
As you can see I cant figure out what to put in place of the question marks.
Everything I have tried has failed.
Is there some "Dummy" instance of an ErrObject that I can use for its "Default" value?