The ArrayResize() function is used to change the size of an array, making it bigger or smaller. But if you are thinking that making an array smaller will free up memory, think again. While arrays may be shrunk, any memory they used will not be freed up until the variable (the array) ceases to exist. So, in truth, there is little value in using ArrayResize() to make arrays smaller. (Applies to: ColdFusion 4.5 (or later))
Leave a Reply