WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE
The IsNull function returns a Boolean value that indicates whether
a specified expression contains no valid data (Null). IsNull
returns True if expression is Null; that is, it contains no valid
data; otherwise, IsNull returns False. If expression consists
of more than one variable, Null in any constituent variable causes
True to be returned for the entire expression. IsNull is also not
the same as a zero-length string (""), which is sometimes
referred to as a null string.
The Syntax of IsNull function is :-
Example#1 :-
Code :-
dim x
document.write(IsNull(x) & "<br />")
x=10
document.write(IsNull(x) & "<br />")
x=Empty
document.write(IsNull(x) & "<br />")
x=Null
document.write(IsNull(x))
Output :-
False
False
False
True |
Example#2 :-
Code :-
<% nothere = null %>
<% =IsNull(nothere) %>
Output :-
True
|
Example#3 :-
Code :-
<% =IsNull("This is a string.") %>
Output :-
False
|
Note :- The Is Null function determines if the expression
is Null.
Example#4 :-
Code :-
<% nothere = null %>
<% =IsNull(nothere) %>
Output :-
True
|
Example#5 :-
Code :-
<% =IsNull("This is a string.") %>
Output :-
False
|
|