Why do we use Option Explicit?

Answer Posted / harry

hi,
when you declare varible you use option Explicit as a
first line of your script .
ex
DIM name

if you do any spelling mistake like nime instead of name
then vb will take this as an new verible and endup giving
unpredictable result while runing.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how does vb script help in web page designing? explain with example.

1584


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

626


what is event handling?

580


How to write VB script for login module?

2673


Does VB/Win make standalone .EXE files?

2896






How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1737


What is the main difference between function and sub-procedure?

548


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

624


What is sql loader? Explain the files used by sql loader to load file?

614


How to throw an error in vbscript?

599


about vb scripting programs this type of all question& answers

1689


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

854


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

1659


Anyone have qtp11.0 crack?

2378


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

1232