Forum Discussion
AlexKaras
14 years agoChampion Level 3
Hi Elya,
In unit A you should create a function that returns an instance of the class and call this function from unit B.
E.g.
' unit A
Function InitClass()
Set InitClass = new MyClass
End Function
class MyClass
'properties and methods
End Class
'unit B
...
Set vClass = Function InitClass()
vClass.Property = ...
intResult = vClass.Function(...)
...
In unit A you should create a function that returns an instance of the class and call this function from unit B.
E.g.
' unit A
Function InitClass()
Set InitClass = new MyClass
End Function
class MyClass
'properties and methods
End Class
'unit B
...
Set vClass = Function InitClass()
vClass.Property = ...
intResult = vClass.Function(...)
...
Related Content
Recent Discussions
- 47 minutes agoSvetaG