asked on
Public Function NZ(ByVal pasTestValue As DBNull, ByVal pasNullReturnValue As Double) As Double
Return pasNullReturnValue
End Function
Public Function NZ(ByVal pasTestValue As String, ByVal pasNullReturnValue As String) As String
'Overloaded for String
Try
If pasTestValue = "" then
Return pasNullReturnValue
Else
Return pasTestValue
End If
Catch ex As Exception
Return pasNullReturnValue
End Try
End Function
ASKER
ASKER
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
I would try to define one method as (see snippet)
then you can check for the type , user switch/case etc.
Open in new window