Hi
In VB6 you would handle null columns as follows:
VB Code:
Dim lcStrValue as string Dim lcObjRcs as ADODB.Recordset lcStrValue = "" & lcObjRcs!Surname
I am now using VB.NET and picking up values from a DataRow object and getting an exception about DBNull.
How do I handle Null in the code below assuming the Surname column in the table is null.
VB Code:
Dim oDataRow As DataRow For Each oDataRow in dtTable.Rows strSurname = oDataRow.Item("Surname") Next
Thanks
