adsense


Thursday, 12 November 2015

ADVANCE VB SCRIPT RUNTIME ERRORS PAGE 208

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




ADVANCE VB SCRIPT RUNTIME ERRORS





Runtime Errors 


Runtime errors, also called exceptions, occur during execution, 
after interpretation. For example, the following line causes 
a runtime error because here syntax is correct but at runtime 
it is trying to call fnmultiply, which is a non-existing function: 


<script type="text/vbscript"> 
   
  Dim x,y 
  x = 10 
  y = 20 
  z = fnadd(x,y) 
  a = fnmultiply(x,y) 
  Function fnadd(x,y) 
      fnadd = x+y 
  End Function 
 
</script> 


No comments: