how do you make the variable declaration mandatory?what is the use of "option explicit"?
Answer Posted / cnu_thatavarthi
Option Explicit
Dim strValue, strValue
strValue = 20
'Expected Error: Name(Variable) is redefined
Dim intA, intB
intC= intA+intB
'Expected Error: Name(Variable is undefined)
Note: If we can use Option Explicit we have To pass the all the variables And it Is indentify undefined And redefined
variables
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which operator can be used to check if two numbers are equal or not in vbscript?
Write a Script for ATM in QTP
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.
What are subprocedures in vbscript?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
How to assign a numeric value to a variable?
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
How to open browser in vb script?
about vb scripting programs this type of all question& answers
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
What are the rules to name variable in vbscript?
Explain the asc function?
I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?