InvokeSyntax Object

Applies to TestComplete 14.10, last modified on June 5, 2019

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
Syntax.CreateInvoke Method
Script Extensions
Generating Script Code

Highlight search results