August 2001
Intermediate to advanced
656 pages
18h 5m
English
IsDBNull Function
Microsoft.VisualBasic.Information
IsDBNull(expression)expression
Use: Required
Data Type: 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