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

waht is puirpose of accesbility Check point? waht is the use of Page and XML check points?

1 Answers  


what are the environment variables,how do you use them. give an example.

3 Answers   Polaris,


Hi, I am new into the field of testing and I need to know how can I begin automating the testing of Mainframe applications using QTP. Can anyone help me?

0 Answers  


When using descriptive programming?

0 Answers  


How can we use regular expressions for a table in web page, each cell in table having unique identification, Now I want to count number of rows in table and enter data in all cells of the table?

1 Answers   CTS,






Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

0 Answers  


hi Sudhananda reddy, in my resume, i written as , I Am working as a Test Engineer for xyz company. IS IT RIGHT OR WRONG? WHAT IS THE ACTUAL meaning of "IN XYZ COMPANY", "FOR XYZ COMPANY", "WITH XYZ COMPANY".

2 Answers  


what r the 3 basic factor on which we determine to perform automation

6 Answers   AppLabs,


explain structured testing? plz guys with exp. do answer

0 Answers  


if there is two login button in your page, how you know that this login button is correct for login .

2 Answers  


I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...

0 Answers  


Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance

0 Answers  


Categories