WMI stands for Windows Management Instrumentation. This is used to access system hardware and software features. It provides very powerful API to perform tasks like starting process, terminating processes etc.
Error handling in VBScript
Error handling in VBScript
VBScript provides below statements and keywords to handle errors.
on error resume next
Err object - err.description, err.number
Sample code to handle the error is given below
If er…Read More
Types of variables in Vbscript
Types of variables in Vbscript
Variables are storage locations in memory where we can store the the values.In vb script there are 3 types of variables.
Scalar - contains only one value.
Array - contains many val…Read More
Classes in VBScript
Classes in VBScript
Here is an example that shows how we can create a class in QTP. Once we define the class, we can create its objects and then access its method and properties.
'declare the class book.
Class Bo…Read More
What are the different operators in vbscript?
What are the different operators in vbscript?
At broad level there are 3 kinds of operators as mentioned below.
Arithmetic Operators
Comparison Operators
Logical Operators
Arithmetic Operators in the order of pre…Read More
Data Types in vbscript
Data Types in vbscript
In vb script all variables are initialized with the data type called variant.
But we can have below sub-types in vb script.
In below table we have mentioned all sub data types in vb sc…Read More
0 comments:
Post a Comment