21 | 08 | 2017

Fix Null values

  Use the code below to fix Null values.

Public Function FixNull(ByVal dbvalue) As String
'***********************************
'*** Code From VisibleVisual.com ***
'***********************************
If dbvalue Is DBNull.Value Then
     Return ""
Else
 
'NOTE: This will cast value to string if
'it isn't a string.
 
     Return dbvalue.ToString
  
End If
End Function
Login

Sign up now and upload your code to the website.

Help us to continue.....
Statistics
Articles View Hits
2330592
Latest Articles