diff between dim & redim ? in detailed? pls any one explain me?



diff between dim & redim ? in detailed? pls any one explain me?..

Answer / laxmi

The ReDim statement is used to change the size of the
array within the script:
for example you have declared an array
Dim Customers(50)
But now you want to change the size of the array so you can
do that with the help of Redim

ReDim Customers(100)

Is This Answer Correct ?    9 Yes 1 No

Post New Answer

More QTP Interview Questions

I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.

1 Answers  


Tell me the situations where we will use Data Driven?

2 Answers  


Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya

3 Answers  


What is the difference between Normal mode and Fast mode ?

1 Answers   AZTEC,


Hi i have a webtable which is having 7 columns and 6 rows of data in that table of 4th and 5 th column each row is partiotioned into 3 sub rows i want to verify in each partitioned rows of corresponding row for ex values will be like this 0 / 1 ,26/28.if it is 0/1 i want to skip only if any num/num greater than 1 i want to click.

1 Answers  


how to identify the user defind varibles? plz tell me

1 Answers  


HI. Plz Clarifie my doubt,having 2+yrs experience in Testing , But My accedamics(Xth,INTER) are Less than 60%, But B.Tech 72%. It creats any problem , When i change to any MNC. plz tell me......... lot of friends told it's a problem, Some people says NO problem, What .............

3 Answers  


How to "Turn Off" QTP results after running a Script?

4 Answers  


How do you data drive an external spreadsheet?

1 Answers  


what is meant by Utility object and utility functions?can u all pls explain these clearly.

1 Answers  


What is Active Screen in QTP?

11 Answers  


What type of error u will get if u have not installed java add in in java project? what is the error name ?

1 Answers   Verizon,


Categories