When and why do you use "OPTION EXPLICIT" in VB Script.
Is there any online help or something to learn the script
for Beginners?

Answer Posted / minni

On the top of the QTP script if u write Option Explicit
that means u r going to define every variable u r going to
define every variable u r using in the script as DIM.
for an example if u want to define an array ......
Option Explicit
Dim A(10)

Is This Answer Correct ?    26 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the ordinal identifiers in web page?

628


How we can import data from database?

643


What is expert view in qtp?

573


how many maximum number of virtual users we can create?

1562


after click on compose mail how can we attached a file in qtp with vbscript code

1607






What is the file extension of the code file in qtp?

556


what are the mandatory properties for a tex boxc (scenario?)

1523


For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?

1739


The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)

2794


How you can replace string in qtp?

568


can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process

1278


How can I check if a environment variable exist or not?

534


How can you send user defined messages to test report?

577


What contains Data Driven Framework document in qtp?

1455


What is the use of Debug Viewer?

1478