Link to home
Start Free TrialLog in
Avatar of RyanBank
RyanBank

asked on

erase data inside an array

hi,

Please assist how can we erase the data and elements inside an array?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of basicinstinct
basicinstinct
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Here's website that talks about the Erase command: http://www.html.dk/dokumentation/vbscript/HTML/vsstmErase.htm#vsstmerase

By the way, if you totally want to kill the array you can use this command:

arr = Nothing


Well, to clarify Angel's comment

Erase only completely removes dynamic arrays.  In the case of static arrays it empties all of the data values (sets them to default for that data type).
Also, I do believe you can only use redim on a dynamic array.