sshrum Posted August 29, 2005 Share Posted August 29, 2005 (edited) How does one reset an existing array?Is there a quick way to just zero it out or even destroy it altogether?TIAADDENDUM: I'm blind: REDIM Edited August 29, 2005 by sshrum Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot' Link to comment Share on other sites More sharing options...
Sokko Posted August 29, 2005 Share Posted August 29, 2005 (edited) There are ways to do both. If you want to reset the entire contents of an array to nothing, just Dim it again, with either the same or different dimensions. If you want to completely destroy it, assign a single value to it without using subscripts, like "$array = 0". EDIT: ReDim is for when you want to keep the original data. It doesn't delete anything unless the new dimensions are smaller than the old. Edited August 29, 2005 by Sokko Link to comment Share on other sites More sharing options...
sshrum Posted August 29, 2005 Author Share Posted August 29, 2005 EDIT: ReDim is for when you want to keep the original data. It doesn't delete anything unless the new dimensions are smaller than the old.<{POST_SNAPBACK}>Hehe..I just found that out...thanks. :"> Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot' Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now