Why do we use Option Explicit?

Answer Posted / farah

If we declare variables in option explicit and if
undeclared variabled are used in the code then it displays
error messages

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hello Friends , I am the new joinner of this website. I am working with Sapient ,Gurgoan I would like to ask few qurries regarding the QTP Tool of (Testing) Currently working on QTP Tool . I would like to no learn VB Script can u name some Books which i get in market. And a small issue in QTP I had 2 users right i have to login and send the document from this user to second user right. when i am send this doc some contendId number generates right. now i am loging into second user and i have to search for that contentId right i found it now i dont want to accept the document so i had an opption of check out ok i have to click on check out my QTP Code is like this Browser(" ").Page(" ").WebTable(" ").ChildItem (3,5,"Image",0).click Browser(" ").Page(" ").Link("ChecK Out").Click i new this code is perfectly right but when i am run the script i have to click on that particular contentId and click on check out but now the Problem is started the error is the document has been already checked out remeber every time my content id changes means it is the new contentId which is not been used atleast once Please help me out in this issue i am in big trouble

2028


Mention how to assign a date value to a variable?

588


How you can call vbscript functions?

578


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

547


How do i automate a website www.flyashx.com without having any test cases witin a week time.

1456






Explain the asc function?

508


Which loop is used in case of arrays in the vbscript language?

520


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

1797


Is VB Script Case sensitive or Case insensitive?

636


how to increase the values in text box in a given text box increament by two values by clicking on button

1641


What is byref and byval parameters in vbscript?

604


How will you reverse a string in vbscript?

620


Why to use option explicit in vb script?

596


Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP

1872


Mention what if you do not specify anything when you call a procedure?

570