elyush
14 years agoOccasional Contributor
How declare class in one unit and create class object in other unit...?
Hi,
I am using TestComplete7, wrritng code in VBScript. an i hav such problem.
I have declare class in unit A - class MyClass
'properties and methods
End Class
And then in unit B i want to create instance of MyClass such way- set myinstance = new MyClass.
In unit B i include unit A .
When the script run, throws exception - "Class not defined: MyClass"
Can't i create object instance in other unit???
I am using TestComplete7, wrritng code in VBScript. an i hav such problem.
I have declare class in unit A - class MyClass
'properties and methods
End Class
And then in unit B i want to create instance of MyClass such way- set myinstance = new MyClass.
In unit B i include unit A .
When the script run, throws exception - "Class not defined: MyClass"
Can't i create object instance in other unit???