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

what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1447


distinguish between old version and new version QTP features.

1852


Hi How to retrieve data from web element line by line?

1565


How to creating an output value using quicktest professional (qtp)?

554


Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.

1936






Will down time for server and content maintenance/upgrades be allowed? how much?

603


How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?

556


How software automation specialist enter steps in the Expert View?

1665


With what extension you can save the list of tests in a file to run in test batch runner?

553


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

695


What does mean by Scope of Automation?n How we defined it?

1562


desribe a situation where u faced a stressful situation and how did u cope with it

1397


Can we run test with out adding object in object repository? How it is possible?

535


can u explain relative path architecture framework in qtp?

1551


explain structured testing? plz guys with exp. do answer

1400