ToDbl

 <System.Runtime.CompilerServices.Extension()>
    Public Function ToDbl(ByVal objValue As Object) As Double

        If IsDBNull(objValue) Then
            Return 0
        Else
            Return objValue
        End If

    End Function
Example:
Dim objAmount as object
objAmount.ToDbl()

Description

Handling null values for obejct

Details

Double click on the code to select all.

 

;