Forum Discussion
tristaanogre
14 years agoEsteemed Contributor
Are you instantiating your object in the same unit that the class is declared in? If not, you'll not be able to reference that object at all.
From TestComplete help:
and
From TestComplete help:
However, in TestComplete’s VBScript projects, you can create class instances
only in the same script unit where the class is defined. Creating a class
instance in another unit causes an error.
and
To solve the problem, you can create a helper routine in the unit, in which the
class is defined. This routine will create a class instance and return it. You
can then call this routine from another unit and work with the created class
instance in a usual manner
Related Content
- 5 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago