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
What methods are used to create text files and open text files in the vbscript language?
Explain vbscript in detail?
How to declare an array in vbscript?
Which function allows you to instantiate an object given its programmatic identifier or progid?
What is difference between vbscript and vba?
Is vbscript language a case-sensitive language and what does it mean?
what is the difference between modular and data and keyword driven framework
can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.
what is the use of QCUtil? explain with one example?
what is the differance between BYVAL,BYREF?
i need to sort the data using qtp script for this how i need to write a qtp script
Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.
How to get the length of the string by making use of the string function?
How will you get a string with the specified character the specified number of times in vbscript?
I need to get some data from data base and store this
(retrieved) data in a excel sheet using VB script in QTP9.0
I have created connection for data base
I have created as excels sheet by using
Set XL=CreateObject("Excel.Application")
XLworksheet.cells(1,1).value= rs.fields.item("<