adsense


Showing posts with label ADVANCE VB SCRIPT ERR OBJECT. Show all posts
Showing posts with label ADVANCE VB SCRIPT ERR OBJECT. Show all posts

Thursday, 12 November 2015

ADVANCE VB SCRIPT ERR OBJECT PAGE 210

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




ADVANCE VB SCRIPT ERR OBJECT





Err Object 


Assume if we have a runtime error, then the execution stops by 
displaying the error message. As a developer, if we want to capture 
the error, then Error Object is used. 
Example 
In the following example, Err.Number gives the error number and Err.
Description gives error description. 
<script type="text/vbscript"> 
   
  Err.Raise 6   ' Raise an overflow error. 
  MsgBox "Error # " & CStr(Err.Number) & " " & Err.Description 
  Err.Clear   ' Clear the error. 
 
</script> 


VBScript has a few other important statements to help developers 
develop an efficient script. The following table lists a set of 
such important statements. In this chapter, we will discuss each 
of these statements in detail with examples. 



Category 	         Function Name/Statement Name 
Options 	         Option Explicit 
Script Engine ID 	 ScriptEngine 
variants 	         IsArray, IsEmpty, IsNull, IsNumeric, IsObject, TypeName 
Expression 	         Eval,Execute 
Control Statement 	 With...End With 
Math Function 	         Randomize