How to create a Delete method which frees memory occupied by my object

L

lexcel

Hi Experts,

How do I create a Delete method which frees the memory which is
reserved (by means of the New keyword) for an object (of a home-made
class) ?

I am looking for the opposite of New.

Set MyObject = New MyClass ' - reserve memory for the object and give
me a pointer
MyObject.Delete ' - remove the object from memory and set pointer to
Nothing

To set the pointer to Nothing is the easy (and last) part.
Is there any instruction or function or API that removes the memory
occupied by an object?

I RTFM and STFW but couldn't find it.

Sincerely,

Lex
 
L

lexcel

Yes, sorry Norman,

I was already embarrassed. I now know how to delete objects , but I
still don't know how to delete posts.

Regards,

Lex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top