what is option explicit?

Answers were Sorted based on User's Feedback



what is option explicit?..

Answer / param

Option explict will automatically take care of defining the
respective data types by VBS itself instead of defining the
data types expicpity..

Is This Answer Correct ?    4 Yes 0 No

what is option explicit?..

Answer / thirumala reddy

option explicit force you to declare a variable to avoid any mistakes in the script

normally when u misspell something in script it takes as a new variable

Is This Answer Correct ?    3 Yes 0 No

what is option explicit?..

Answer / madivalappa patil

option explicit force you to declare a variable to avoid
any mistakes in the script

normally when u try to use a variable which is not declared
in script then it will through an error saying that
variable not declared.

If you used Option Explicit on Top of your script then you
must declare all the veriables.

Is This Answer Correct ?    3 Yes 0 No

what is option explicit?..

Answer / ajreddy

hi param i think u r wrong in option explict.
option implicit is according to u its correct

Is This Answer Correct ?    0 Yes 0 No

what is option explicit?..

Answer / jaipal

You should declare the variable
Dim ----
public----
private---

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

0 Answers   ADITI,


What is CMMP and CMMH?

0 Answers  


what are the main differences between keyword driven frame work and data driven frame work?

1 Answers   UHG,


what is smart identification?

7 Answers  


How do we create and run the scripts with out using O.R. ?

5 Answers  






Explain about the quicktest professional (qtp) automation object model?

0 Answers  


Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

0 Answers  


How to check which add-ins are associated with a test in qtp?

0 Answers  


Tell me the situations where we will use Data Driven?

4 Answers   Ordain Solutions,


Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.

0 Answers   IBM,


Why a framework is needed?? Plaese post your answers ASAP

3 Answers   ACC, FD, Mphasis,


How will you handle the situation when object is not captured during record?

12 Answers   AZTEC,


Categories