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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Object variable to nothing 5

Status
Not open for further replies.

pmcdaniel

Programmer
Feb 9, 2007
127
US
Curious question.....

Would it be more beneficial to set an object variable to Nothing and immediatly on the next line setting it again to another object or does this not make a difference as long as I set it to Nothing when finished?

I found a TON of object variables in an application I'm working on that are never set to Nothing and I'd like to start a clean-up process.

Also, if you don't mind - a quick explanation so I can use it when asked why I'm fixing all these object variables.

Thanks much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top