N
Nemisis
Hi everyone, i have been stressing over this for the past hour or so,
and just cannot figure it out, sorry if i am being stupid, but it is a
friday! lol
I have the following
Private _ID as nullable (Of integer)
Public Property ID()
Get
Return _ID
End Get
Set(ByVal value)
_ID = value
End Set
End Property
If i write
Me.ID = 1234
then the value in the debugger seems to update, great.
But how do i get it back to null again? If i set ID = DBNull.Value, i
get a build error. If i set ID = Nothing, then in the debugger, it
says "Nullable object must have a value".
If i am missing the point and being stupid, i do apoligise, i just
really need to get this done.
and just cannot figure it out, sorry if i am being stupid, but it is a
friday! lol
I have the following
Private _ID as nullable (Of integer)
Public Property ID()
Get
Return _ID
End Get
Set(ByVal value)
_ID = value
End Set
End Property
If i write
Me.ID = 1234
then the value in the debugger seems to update, great.
But how do i get it back to null again? If i set ID = DBNull.Value, i
get a build error. If i set ID = Nothing, then in the debugger, it
says "Nullable object must have a value".
If i am missing the point and being stupid, i do apoligise, i just
really need to get this done.