Home General VB.NET Fix Null
20 | 05 | 2012
This site has been updated and renewed. You have followed an old link.

Click here to go to the new site

http://www.visiblevisual.com/jupgrade

Fix Null PDF Print E-mail
User Rating: / 0
PoorBest 
Tutorials

  Use the code below to fix Null values.

    1 Public Function FixNull(ByVal dbvalue) As String

    2     '***********************************

    3     '*** Code From VisibleVisual.com ***

    4     '***********************************

    5     If dbvalue Is DBNull.Value Then

    6         Return ""

    7     Else

    8 

    9         'NOTE: This will cast value to string if

   10         'it isn't a string.

   11 

   12         Return dbvalue.ToString

   13 

   14     End If

   15 End Function

 

 

Add comment


Security code
Refresh

This site has been updated and renewed. You have followed an old link.

Click here to go to the new site

http://www.visiblevisual.com/jupgrade