Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
REDIM memory allocation
#1
Not Solved
Hi,

If we declare an array like - Dim Array(3) and assigned the values
Array(0) = aaa
Array(1) = bbb
Array(2) = ccc

this we can re-memorize the array by using - Redim Array(10).
In this case the previous memory as well as data will be erased rite. If i want the same array value
Array(0) = aaa
Array(1) = bbb
Array(2) = ccc to the resized array. so how can we get this.

Please Help me with vb script statment.

Regards,
Reply
#2
Not Solved
To preserve the data, you can resize it using Preserve keyword

Code:
Redim Preserve Array(10)
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Clear qtp memory dondemon 0 3,534 12-03-2014, 12:25 PM
Last Post: dondemon
  Clear memory of an object properly between loop iterations? MGMN 5 6,659 09-26-2008, 02:00 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 4 Guest(s)