System Null and DB NUll : Database NULL « Database « VB.Net

System Null and DB NUll

System Null and DB NUll

Public Class MainClass

   Public Shared Sub Main()

        Dim strConstant As String = "ABC"
        Dim strRepeat As New String("A"c, 20)
        Dim strMyString As String = "Hello World"

       strMyString = Nothing
        Dim sysNull As System.DBNull
        If strMyString Is sysNull Then
            strMyString = "Initialize my String"
        End If
        If Not IsDBNull(strMyString) Then
        End If
   End Sub
End Class


Related examples in the same category