HDI: Pass calling form as variable into class

  • Thread starter Thread starter Chris Hayes
  • Start date Start date
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
 
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 <--
 
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
 
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 <--
 
Back
Top