L
Larry
Hi all,
I am coming over from VB 6, learning VB.NET.
I have read and have in front of me, the language reference from
the msdn, on; Behavior of Null has changed, Isdbnull function and
isnothing function.
However, I am still at a loss to know excatly what to do.
When I check a control for a value, (before I send it to a field on a record
in the database), and the user has not entered anything into that
control, What do I check for?
IsDBNULL, Isnothing, or vbnullstring, Len()=0, or all four?
What do I put in a field that is going to the datbase, if the user
didn't enter anything into the control?
system.dbnull.value, or Nothing, or vbnullstring or ""
When I get a field back from the database, what do I check for?
IsDBNull, Isnothing, vbnullstring, Len()=zero?
Thanks in Advance,
Larry
I am coming over from VB 6, learning VB.NET.
I have read and have in front of me, the language reference from
the msdn, on; Behavior of Null has changed, Isdbnull function and
isnothing function.
However, I am still at a loss to know excatly what to do.
When I check a control for a value, (before I send it to a field on a record
in the database), and the user has not entered anything into that
control, What do I check for?
IsDBNULL, Isnothing, or vbnullstring, Len()=0, or all four?
What do I put in a field that is going to the datbase, if the user
didn't enter anything into the control?
system.dbnull.value, or Nothing, or vbnullstring or ""
When I get a field back from the database, what do I check for?
IsDBNull, Isnothing, vbnullstring, Len()=zero?
Thanks in Advance,
Larry