Amanda,
You can explicitly do it with:
this.oSomething = .null.
Normally an object that was added via an AddObject() call, or dropped onto a form/class in the designer fits in the VFP object containership model. And VFP will clean up these objects correctly by itself.
If you create an additional object reference to an object it increases an internal reference counter, and an object will not destruct until its reference count goes to zero. A container (like form) can not destruct until all of its contained objects destruct.
I put together a tool to help people trackdown dangling object references, you can get it from my website, under Q&A, OOP, article qoop017
>Ok, I hate to sound terribly dense, but how do I set a reference to NULL? I am not sure how to check for dangling object references either. Please be kind, I am new :)