Dear All
My array is like that
Dim OldArray() as string
Dim NewArray() as string
How can I clear this array end of the Procedure
Many Thanks
salih
Printable View
Dear All
My array is like that
Dim OldArray() as string
Dim NewArray() as string
How can I clear this array end of the Procedure
Many Thanks
salih
Something like:
OldArray = Nothing
The CLR handles memory management for all managed resources. Because an array is a reference type, the garbage collector will deallocate the memory from the heap the next time he runs.
Array.Clear(OldArray, 0, MyArray.Length)
Since he mentioned clearing the array at the end of the procedure, it sounds like he meant to say 'free the array's memory'.