cdb424ttm
asked on
redim vs. erase what is the difference
redim vs. erase what is the difference?
I’m having a hard time understanding what the difference between using erase or redim to clear out an array. Can some one fill me in on the pros and Con’s of it?
Thanks
I’m having a hard time understanding what the difference between using erase or redim to clear out an array. Can some one fill me in on the pros and Con’s of it?
Thanks
ya redim will remove memory (without the preserve)
erase will also do
erase will also do
i am not sure what will be the difference in terms of "freeing memory" speed for hugh arrays.
if i am not wrong, i guess redim is faster.
perhaps emoreau can comment on this.
if i am not wrong, i guess redim is faster.
perhaps emoreau can comment on this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>if i am not wrong, i guess redim is faster.
>>perhaps emoreau can comment on this.
I have no idea on this.
>>perhaps emoreau can comment on this.
I have no idea on this.
erase will completely delete a variable arrays and will only reset values of static arrays.