Jason D.
Irvine, CA
Dec 27, 2018
32
Posts
Re: Array size changer
Hi Yuval,
What you are looking for can be done with the "redim preserve" statement as you mention, but you may want to look into lists.
I have attached an example using ArrayLists to my post.
But in case you want to do it with "redim preserve" anyway, you would create a function that would look something like this:
lSize = sizeof(Arr)/sizeof(Arr[0])
redim preserve Arr[lSize+1]
Arr[lSize] = lNewValue
Regards,
Jason
File Attachment:
Test ArrayList.zip