| Fix Null |
|
|
|
| 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
|


