|
-
Mar 6th, 2003, 10:11 AM
#1
Thread Starter
Member
Clearing the Array
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
-
Mar 6th, 2003, 10:25 AM
#2
PowerPoster
Something like:
OldArray = Nothing
-
Mar 6th, 2003, 10:34 AM
#3
PowerPoster
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.
-
Mar 7th, 2003, 03:55 AM
#4
Junior Member
Array.Clear(OldArray, 0, MyArray.Length)
The arrow shot by the archer may, or may not, kill a single person. However, stratagems devised by a wise man, can kill even babes in the womb.
-
Mar 7th, 2003, 10:07 AM
#5
PowerPoster
Since he mentioned clearing the array at the end of the procedure, it sounds like he meant to say 'free the array's memory'.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|