HDI: Pass calling form as variable into class

C

Chris Hayes

I have a class that is instantiated in a form.

How do I pass that form as a variable to the class?

I've seen it elsewhere. The form is manipulated by the object. I
want to do likewise.

When the form module executes a method of the class, I want the class
to recognize the form that called it.

Thank in advance.

Chris
 
S

Stefan Hoffmann

hi Chriss,

Chris said:
How do I pass that form as a variable to the class?
Does the class have any member functions like

Sub member(AForm As Access.Form)
End Sub
When the form module executes a method of the class, I want the class
to recognize the form that called it.
You can use it as

object.member Me.Form


mfG
--> stefan <--
 
C

Chris Hayes

Stefan,

Yes, this works. I just thought there was a way to 'automatically'
identify the calling form instead of identifying it from the
instantiated object.

Thanks,

Chris
 
S

Stefan Hoffmann

hi Chris,

Chris said:
Yes, this works. I just thought there was a way to 'automatically'
identify the calling form instead of identifying it from the
instantiated object.
Na, this is the part, where programming comes down to pure work :) No
automagic.



mfG
--> stefan <--
 

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