adsense


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

Friday, 13 November 2015

ADVANCE VB SCRIPT EVAL PAGE 218

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




ADVANCE VB SCRIPT EVAL





Eval 


The Eval Function executes an expression and returns the result 
either as a string or a number. 
Syntax 
 Eval(expression) 
The argument Expression can be a string expression or a number. 
If you pass to the Eval function a string that doesn't contain 
a numeric expression or a function name but only a simple text 
string, a run-time error occurs. For example, Eval("VBScript") 
results in an error. 
Example 
<!DOCTYPE html> 
<html> 
<body> 
<script language="vbscript" type="text/vbscript"> 
 
  Document.write Eval("10 + 10") & "<br />" 
  Document.write Eval("101 = 200") & "<br />"  
  Document.write Eval("5 * 3") & "<br />"  
 
</script> 
</body> 
</html> 
Save the file with .html extension upon executing the script in IE, 
the following result is displayed on the screen. 
20 
false 
15