What is the use of "Option Explicit"?

Answer Posted / sonal.pagare

You can force VBScript to require all variables to be
explicitly declared by including the statement Option
Explicit at the start of every script. Any variable that is
not explicitly declared will then generate an error.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which event is triggered when mouse focus comes out of an element in the vbscript language?

509


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

534


Explain what is loose binding? Why is it not a good practice to use it?

580


How will you get the octal value of the given number in vbscript?

499


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

1875






hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?

1740


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

1539


What is Procedure or Subroutine in VB Script?

604


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3274


How many types of operators are available in the vbscript language?

537


What is difference between vbscript and vba?

612


Mention when to use function procedures and what are its characteristics?

627


What is the purpose of regexp object in vbscript?

559


When are redim statement and preserve keyword used in the vbscript language?

597


How to take whole text output from screen of Bitmap Application.

1870