InvokeSyntax Object

Applies to TestComplete 15.40, last modified on July 05, 2022

Description

InvokeSyntax objects are syntax elements that correspond to invoked expressions. These are expressions that contain any of the following:

  • A variable name, for example MyVariable.
  • A procedure or function call, for example, Delay(1000).
  • An object’s property name, for example, Sys.Clipboard.
  • An object’s method call, for example, Log.Message("Checkpoint passed successfully").

To create a InvokeSyntax object instance, use the Syntax.CreateInvoke method.

The InvokeSyntax object provides properties and methods that lets you specify the name of the element being invoked, the object that contains the element (if any), the element type (property or method) and parameters.

Members

Example

For examples of using the InvokeSyntax object, see the Generating Script Code section.

See Also

Syntax Object
CreateInvoke Method
Script Extensions
Generating Script Code

Highlight search results