I was wondering if when you declare an object in a procedure, if the object is destroyed when the procedure if finished. I have been taught to always set it to nothing at the end of the proc and I was just wondering if it was necesary? thanks
Printable View
I was wondering if when you declare an object in a procedure, if the object is destroyed when the procedure if finished. I have been taught to always set it to nothing at the end of the proc and I was just wondering if it was necesary? thanks
Answer: yes the object will persist if you do not get rid of it.
You should set objects to nothing.