T
tshad
Can you handle nullable string vb.net 2.0?
You can with Integer but I get an error when I try to do a
Dim s as Nullable (Of String)
Now strings are a nullable type but it can't handle:
fn.FormName = dbReader("FormName")
You get an error saying:
Unable to cast object of type 'System.DBNull' to type 'System.String'.
So do I still need to test for null and set to "" or null if this is the
case?
Thanks,
Tom
You can with Integer but I get an error when I try to do a
Dim s as Nullable (Of String)
Now strings are a nullable type but it can't handle:
fn.FormName = dbReader("FormName")
You get an error saying:
Unable to cast object of type 'System.DBNull' to type 'System.String'.
So do I still need to test for null and set to "" or null if this is the
case?
Thanks,
Tom