adsense


Friday, 13 November 2015

ADVANCE VB SCRIPT ISOBJECT PAGE 215

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




ADVANCE VB SCRIPT ISOBJECT






IsObject 
The IsObject Function is used to check whether or not the expression 
has a valid Object. It returns a Boolean value. IsObject returns True 
if the expression contains an object subtype otherwise the expression returns False. 

Syntax 

IsObject(expression) 
Example 
<!DOCTYPE html> 
<html> 
<body> 
<script language="vbscript" type="text/vbscript"> 
  Dim fso,b 
  b = 10 
  set fso = createobject("Scripting.Filesystemobject") 
  x = isobject(fso) 
  Document.write "Line 1 : " &  x  & "<br />"  
  y = isobject(b) 
  Document.write "Line 2 : " &  y  & "<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 


No comments: