adsense


Friday, 13 November 2015

ADVANCE VB SCRIPT EVEL EXCUTE PAGE 219

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




ADVANCE VB SCRIPT EVEL EXCUTE






Execute

The Execute statement accepts argument that is a string 
expression containing one or more statements for execution. 
Syntax 
 Execute(expression) 
In VBScript, a = b can be interpreted two ways. It can 
be treated as an assignment statement where the value 
of x is assigned to y. It can also be interpreted as 
an expression that tests if a and b have the same value. 
If they do, result is True; if they are not, result is 
False. The Execute statement always uses the first 
interpretation while the Eval statement always uses the second. 

Example 

<!DOCTYPE html> 
<html> 
<body> 
<script language="vbscript" type="text/vbscript"> 
 
  Dim x 
  x = "Global"  
  y = "VBScript" 
  Execute("x=y") 
  msgbox x 
  msgbox y 
   
</script> 
</body> 
</html> 
Save the file with .html extension upon executing the script in IE, 
the following result is displayed on the screen. 
VBScript 
VBScript 


No comments: