2dcoder |
Posted - Apr 06 2005 : 3:07:19 PM Example, I have some udt's such as:
public aaa as Type x as integer y as single end type
public bbb()
Then in my main module:
redim bbb(1000) as aaa
When I exit the program do I need to release either the type (aaa) or the array which is (bbb)? And if I do, how do I release them? I tried set as nothing but it didn't work. Thanks for any help. |
VBBR |
Posted - Apr 08 2005 : 11:05:42 AM "Set xxx = Nothing" only works for classes (objects). |
2dcoder |
Posted - Apr 07 2005 : 11:38:49 PM Thanks Noi!
I'm declaring in a module, based on a var read from file. Looks like erase is the best option, thanks! |
noi_max |
Posted - Apr 06 2005 : 4:55:19 PM I don't think a release is necessary, but if you're concerned about memory you can always erase the array
Erase bbb
Also, how about decalring the datatype up front?
Public bbb() As aaa ReDim bbb(1000)
|
|
|