Description
An InvokeSyntax object allows you to refer to properties of a particular object and calls the object’s methods. Use the ClassValue property to specify the object that contains the property or method you want to call.
Declaration
Applies To
The property is applied to the following object:
Property Value
The ClassValue property can hold one of the following values:
- A string containing the name of one of TestComplete top-level scripting objects, for example,
"Log". - An
InvokeSyntaxobject corresponding to an expression that results in an object reference. - The
Sysobject, aprocess,windoworonscreenobject. See the Remarks section for details.
If the element being invoked does not belong to an object (that is, it is a script variable or a routine), the ClassValue property should be an empty object ( null in JScript, Nothing in VBScript).
Remarks
The ClassValue property can be assigned to the Sys, process, window or onscreen object. In this case, you should keep in mind the following:
-
The desired object can be addressed by its fully-qualified name via the
Sysobject as well as by a custom name via theNameMappingorAliasesobject. Note, that you can only use those custom names that are specified in the NameMapping item of the user’s active project. -
The object being referenced must exist, otherwise an error will occur.
