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



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

Answer / 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

More QTP Interview Questions

how to get the object property

4 Answers   Covansys,


The hybrid framework can be implemented for any application. Is it true?

1 Answers  


What is the need and applications of learning VB script for a automation(QTP) engineer ain Realtime ?

1 Answers  


how to acess a test in RSA?

1 Answers   IBM,


When to use descriptive programming?

1 Answers  


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com

0 Answers  


I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!

1 Answers  


Can you tell me the differences between writing the VB script manually for a application and recording the same application in QTP , with a example?

1 Answers  


Explain the concept of how QTP identifies object.

5 Answers   Ordain Solutions,


what is synchronization point, synchronization method, wait property method? with examples.. plz explain this in brief

3 Answers  


Hi all, i have installed QTP8.2 in my system. but script is not generating while recording. What is the problem? is any file missing? pls let me know anybody...Thnaks

3 Answers  


How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

1 Answers  


Categories