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

In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!

2384


What are the five challenges you faced in QTP?

2754


What is qtpro? What is a quick test professional?

583


How to save your test using quicktest professional (qtp)?

595


Difference between action & Reusable action?

687






What is synchronization point in QTP?

672


Write a script to customize the test results in PDF and HTML format.

2082


Can you write a script to check if the folder exists or not?

515


In qtp, explain what is keyword driven automation framework?

615


How to analyzing test results using quicktest professional (qtp)?

586


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

587


What is action? How many types of actions are there in qtp?

614


How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

542


Connect to QC using AOM.

1234


Hi, I am supposed to automate mainframe application through qtp. I do not know how to start abt it. Can you plz help me in first initializing the process or do you anybody have a guide book or a link which guides me through the process of automating the mainframe applications and things involved in it.

6660