B
bh
Is there such thing as a default exception value? I'm trying to pass an
optional parameter, containing an exception back to a calling procedure. In
the pseudocode, below, what might I put in place of the ??? in the calling
procedure & corresponding function? Thanks in advance. BH
CALLING PROCEDURE:
Dim ex as exception
ex = ???
GetPossibleException(ex)
Public Function GetPossibleException(optional ByRef ex as exception = ???)
as datareader
Try
..
..
..
Return MyDataReader
Catch MyExc as Exception
ex = MyExc
End Try
optional parameter, containing an exception back to a calling procedure. In
the pseudocode, below, what might I put in place of the ??? in the calling
procedure & corresponding function? Thanks in advance. BH
CALLING PROCEDURE:
Dim ex as exception
ex = ???
GetPossibleException(ex)
Public Function GetPossibleException(optional ByRef ex as exception = ???)
as datareader
Try
..
..
..
Return MyDataReader
Catch MyExc as Exception
ex = MyExc
End Try