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 Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
Property of Redim is Resizing the given array.
If u reduce the size of array, you lose the data in the eliminated elements.
Ex If Array size is 8
If u reduce the array size to 5 u will lost the data in the eliminated
elements(ie data in the a(5),a(6) anda(7) elements will lost).
Regards,
Vivek
Thank you very much all for your inputs.
Finally, I use Ramya's way and it works well now. Again, aprreciate all for helping me to solve the problem.
|