G
Greg
I have a DataTable that I'm assigning values from. I have an Integer value
that happens to contain a null, thus I cannot assign the Null value to my
Class Property.
I have the following lines of code and neither works.
If NOT String.IsNullOrEmpty(oUser.Rows(0).Item("DeptID")) Then
Me.DeptID = CType(oUser.Rows(0).Item("DeptID"), Integer)
End If
I'm doing something wrong here. What I need to do is examine the
oUser.Rows(0).Item("DeptID") to make sure its not a NULL value. Thus, if it
has a value then i will assign the value.
Any assistance with this problem will be greatly appreciated.
Thanks,
Greg
that happens to contain a null, thus I cannot assign the Null value to my
Class Property.
I have the following lines of code and neither works.
If NOT String.IsNullOrEmpty(oUser.Rows(0).Item("DeptID")) Then
Me.DeptID = CType(oUser.Rows(0).Item("DeptID"), Integer)
End If
I'm doing something wrong here. What I need to do is examine the
oUser.Rows(0).Item("DeptID") to make sure its not a NULL value. Thus, if it
has a value then i will assign the value.
Any assistance with this problem will be greatly appreciated.
Thanks,
Greg