adsense


Showing posts with label ADVANCE VB SCRIPT ISEMPTY. Show all posts
Showing posts with label ADVANCE VB SCRIPT ISEMPTY. Show all posts

Thursday, 12 November 2015

ADVANCE VB SCRIPT ISEMPTY PAGE 213

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




ADVANCE VB SCRIPT ISEMPTY






IsEmpty 


The Function IsEmpty is used to check whether or not the expression 
is empty. It returns a Boolean value. IsEmpty returns True if the 
variable is uninitialized or explicitly set to Empty. Otherwise 
the expression returns False. 
Syntax 
IsEmpty(expression)  
Example 
<!DOCTYPE html> 
<html> 
<body> 
<script language="vbscript" type="text/vbscript"> 
  
  Dim var, MyCheck 
  MyCheck = IsEmpty(var)   
  Document.write "Line 1 : " & MyCheck & "<br />" 
   
  var = Null   ' Assign Null. 
  MyCheck = IsEmpty(var)  
  Document.write "Line 2 : " & MyCheck & "<br />" 
  
  var = Empty   ' Assign Empty. 
  MyCheck = IsEmpty(var) 
  Document.write "Line 3 : " & MyCheck & "<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 : True 
Line 2 : False 
Line 3 : True