How can we change(increase or decrease)the size of a array
variable with out loosing the previous values

Answer Posted / pratap h s

Dim a(10) is array declared

if we want to change the size of array it should be
declared with redin as below

ReDim A(10)

to preserve the contents of array we need to use preerve
keyword as below

ReDim Preserve A(10)

above line is Answer ,,,, by declaring array as above it
will preserve the valus

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many tabs are available in debug viewer pane?

649


QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue

5523


What are the key points to create a framework in QTP for oracle forms?

1819


hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale

1511


What is smart identification in QTP?

634






Define virtual object?

612


what difference between runtime object and text object and what property they have. whether they have same properties or different properties.

1711


Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)

1745


Hi I know two types of testing processes. 1. Reaquirments stage,test design,code review's, Design review's, Test Plan, Test Cases design, test execution, Defect Reporting and tracking, UAT, Signoff. 2.Test Initiation , Test Plan, Test Design, Execution,Bug tracking, UAT, Sign off.

1380


Explain about business process component? types and usage?

1566


what could go wrong with test automation?

1509


in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?

1361


There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code

1214


hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com

3706


How do you capture tooltip using QTP?

637