adsense


Friday, 13 November 2015

ADVANCE VB SCRIPT ISNULL PAGE 214

COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button




ADVANCE VB SCRIPT ISNULL






IsNull 


The Function IsNull is used to check whether or not the expression 
has a valid data. It returns a Boolean value. IsNull returns True if 
the variable is Null otherwise the expression returns False. 
Syntax 
IsNull(expression)  
Example 
<!DOCTYPE html> 
<html> 
<body> 
<script language="vbscript" type="text/vbscript"> 
    
   Dim var, res 
   res = IsNull(var) 
   document.write "Line 1 : " & res & "<br />" 
    
   var = Null 
   res = IsNull(var) 
   document.write "Line 2 : " & res & "<br />" 
    
   var = Empty 
   res = IsNull(var) 
   document.write "Line 3 : " & res & "<br />" 
 
</script> 
</body> 
</html> 
Save the file with .html extension upon executing the script in IE, 
the following result is displayed on the screen. 
Line 1 : False 
Line 2 : True 
Line 3 : False 


No comments: