M
mikemc
I am trying to consume a untyped dataset from a VB.NET
webservice and update a local SQL Server CE 2.0 db. When
one of the values is null, I have been unable to
successfully test for it to build a SQL stmt.
I have tried: 1) If dr.IsNull(dc.Ordinal) Then, 2) If
dr.Item(dc.Ordinal).ToString.Trim.Length = 0 Then, 3) If dr
(dc.Ordinal).ToString = "", and 4) If dr
(dc.Ordinal).ToString = [String].Empty where dr is the
datarow and dc is the datacolumn.
Every one of these statements (conditionals) appears to
work fine in the Watch window and there are no exceptions
thrown.
Can anybody help me please?
Thanks. Mike
webservice and update a local SQL Server CE 2.0 db. When
one of the values is null, I have been unable to
successfully test for it to build a SQL stmt.
I have tried: 1) If dr.IsNull(dc.Ordinal) Then, 2) If
dr.Item(dc.Ordinal).ToString.Trim.Length = 0 Then, 3) If dr
(dc.Ordinal).ToString = "", and 4) If dr
(dc.Ordinal).ToString = [String].Empty where dr is the
datarow and dc is the datacolumn.
Every one of these statements (conditionals) appears to
work fine in the Watch window and there are no exceptions
thrown.
Can anybody help me please?
Thanks. Mike