Hello,
I have a sub which I need to be able to pass an exception.
Public Sub WriteLog(Optional ByVal Exception As Exception)
This Exception needs to be an optional input parameter. Optional parameters require a defualt value. If this is where I am having the problem.
I do not know how to give a default value for a Exception. If it was a string I would put:
Public Sub WriteLog(Optional ByVal Message As String = "")
Please help.
thanks
david
I have a sub which I need to be able to pass an exception.
Public Sub WriteLog(Optional ByVal Exception As Exception)
This Exception needs to be an optional input parameter. Optional parameters require a defualt value. If this is where I am having the problem.
I do not know how to give a default value for a Exception. If it was a string I would put:
Public Sub WriteLog(Optional ByVal Message As String = "")
Please help.
thanks
david