April 2002
Intermediate to advanced
688 pages
19h 51m
English
IsDBNull Function
Microsoft.VisualBasic.Information
IsDBNull(expression)expression (required; any expression)Boolean
Determines whether expression evaluates to
DbNull (that is, is equal to System.DbNull.Value).
DbNull is not the same as
Nothing or an empty string.
DbNull is used to denote the fact that a variable
contains a missing or nonexistent value, and it is used primarily in
the context of database field values.
Since any expression that contains DbNull
evaluates to DbNull, an expression such as:
If var = DbNull Then
will always fail. The only way to test for a
DbNull value is to use
IsDbNull.
The IsDBNull function is new to VB.NET.
Read now
Unlock full access