Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21192

[RESOLVED] How To Free Memory for Non-Array UDT?

$
0
0
Hello. Well the title pretty much says it all, but just to add: I know you can use the keyword Erase for array variables and UDTs, correct me if I'm wrong though, but how do you do that for the non-array ones?

And one more thing, suppose I have an array of Objects, now which one of the following would you do on the Form_Unload():
vb Code:
  1. For Obj in ArrayUDT
  2.     Set Obj = Nothing
  3. Next Obj

Or,

vb Code:
  1. Erase ArrayUDT()

Which one is actually safer to use? Thank you.

Viewing all articles
Browse latest Browse all 21192

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>