|
-
Jan 4th, 2001, 10:28 PM
#1
Thread Starter
Member
Anyone know's how do i unload all the array Menu i have made ?
do i have to make a Loop to unload all Array Menu ?
-
Jan 4th, 2001, 10:43 PM
#2
PowerPoster
Here's how you kill a variable array;
Code:
Erase VarArray ' Each element set to Empty.
-
Jan 4th, 2001, 11:05 PM
#3
Thread Starter
Member
this is what i did but doens't work !
Sub UnloadAllArray()
For b = 0 To mnuemail().Count - 1
Erase mnuemail(b)
Next
End Sub
-
Jan 4th, 2001, 11:14 PM
#4
PowerPoster
But if you use the Erase syntax, you need to know the following 2 things:
If the Array is Fixed size, then the Erase will only reinitialize the Array but not release the memory.
Else the Array is a dynamic array then the entire memory is release.
Code:
Dim MyArray1 (10) As String
Dim MyArray2 () As String
ReDim MyArray2(10)
Erase MyArray1 'Memory hold by the MyArray1 is not released.
Erase MyArray2 'Memory hold by the MyArray2 is relesed
Cheers!
[Edited by Chris on 01-04-2001 at 11:25 PM]
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
|