Destroy object from memory

F

Flavio Miano

Hi all

i have created a class module named Class1
on a form i create a histance of this Class Class1

dim c as Class1

sub form_load()
set c = new Class1
end sub

I NEED to ERASE the OBJECT from CLASS MODULE.

I NEED to create this method inside class CLASS1

sub destoyme()
' i try with
unload me
end sub

so in the form module a can call

sub cmdErase_click()
c.destroyme
end sub

' attention i do not need to destory from form module with
set c = nothing
' i know this method but i do not need it


thanks in advance
FLAVIO


ps. the real problem is that i need to receive by socket connection a
command that destroy a server object instance.
 
J

JohnFol

You cannot do this as the instance does not exist "inside" the class. It
exists within the form.

Consider several forms that have a reference to the class. How would calling
a method inside the class know which form instance it should destroy?
 
F

Flavio Miano

My problem
create concurrent server on the same access database
in Unix C i release this with a simple fork and this create two processes.
how to do this on access module MDE with Access 97

thanks in advance
FLAVIO
 

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