InvokeSyntax.ClassValue Property

Applies to TestComplete 14.0, last modified on January 23, 2019

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

InvokeSyntax.ClassValue

Read-Write Property Variant

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 InvokeSyntax object corresponding to an expression that results in an object reference.
  • The Sys object, a process, window or onscreen object. 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 Sys object as well as by a custom name via the NameMapping or Aliases object. 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.

See Also

InvokeSyntax.InvokeName Property
InvokeSyntax.IsProperty Property
InvokeSyntax.AddParameter Method

Highlight search results