This code may work

ReDim A(5)
A(5)=7
Print A(5)
ReDim preserve A(3)
Print A(3)


On Wed, Jan 12, 2011 at 12:51 PM, Ramya harini <[email protected]>wrote:

> U hav already fixed ur array size to 5 while ur declaring it... use this
> way.
>
> dim myarray()
> redim myarray(5)
> redim myarray(3)
>
> On Tue, Jan 11, 2011 at 10:42 PM, ann hoang <[email protected]> wrote:
>
>>
>> Hi all,
>>
>> Have anyone ever try to redim array? I try to redim array but it doesn't
>> work.
>> For example: first time, I have dim array size 5 but second time, I try to
>> redim array size 3 but it doesn't work.  It still shows arr[4] and arr[5]
>> empty.  Please advise!
>> Many thanks
>>
>> Ann.
>>
>> --
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<mercuryqtp%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<mercuryqtp%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>



-- 


Regards ,

Vivek Joglekar
Mob. No : 9867156181

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to