litlmike Posted January 29, 2007 Posted January 29, 2007 I have an array that I want to declare as null at the end of a script, I have seen in other languages where you can just do: $Variable = Null What is the equivalent in AutoIt? I have a script that always runs in the background, that I call every once in awhile. The problem is that the arrays that are created can get large and I need those memory addresses to be cleared so that I am not always allocating 30 MBs of RAM to this array. Thanks. _ArrayPermute()_ArrayUnique()Excel.au3 UDF
NELyon Posted January 29, 2007 Posted January 29, 2007 I have an array that I want to declare as null at the end of a script, I have seen in other languages where you can just do: $Variable = Null What is the equivalent in AutoIt? I have a script that always runs in the background, that I call every once in awhile. The problem is that the arrays that are created can get large and I need those memory addresses to be cleared so that I am not always allocating 30 MBs of RAM to this array. Thanks. Maybe i don't understand correctly but wouldn't this be it? Global $Variable= "" ;or Global $variable=0
improbability_paradox Posted January 29, 2007 Posted January 29, 2007 from the helpfile, under DimTo erase an array (maybe because it is a large global array and you want to free the memory), simply assign a single value to it:$array = 0This will free the array and convert it back to the single value of 0.
litlmike Posted January 30, 2007 Author Posted January 30, 2007 from the helpfile, under Dimpffft... that was too easy.Thanks for the info! _ArrayPermute()_ArrayUnique()Excel.au3 UDF
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