
Accessing procedures of a class module from another class module
You either need a reference created in the clas, or pass in a reference to
it, like this
clsIn
private m_clsCOut
Public Property set COut(inclsOur as clsOut)
Set m_clsCOut=inclsOut
End Property
FunctionFoo()
Dim x as Long
Foo=3.14159 * m_clsCout.circleRadius * 2
End Function
In main form
Dim cIn as clsIn
Dim cOut as clsOut
Set cIn=New clsIn
Set cOut=New clsOut
Set cIn.COut=cOut
msgbox cIn.Foo
Quote:
> Can I access the methods of one class module (clsOut) from another class
> module (clsIn) without having to create a variable referene to clsOut (ie.
> not having to place a statement "Dim NewClass as New clsOut" in clsIn)?
> Thanks,
> Jason