Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is this bad- Set i=Nothing i=Empty

Status
Not open for further replies.

joelwenzel

Programmer
Jun 28, 2002
448
Is this bad code? Am I leaking memory if I do this?

Set i = Nothing
i=Empty


I have a problem in my code where I have a variable which sometimes is an object and sometimes is not. Sometimes when I make it an object, I want to set it back to not beging an object so that IsObject returns false.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top