CollectionSyntax Object

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

The CollectionSyntax object is a syntax element that corresponds to a collection of code statements. For example:

JScript

var MyVar;
MyVar = 42;
Log.Message(MyVar);

VBScript

Dim MyVar
MyVar = 42
Log.Message MyVar

A collection can include the following syntax elements:

To create a new CollectionSyntax object instance, use the Syntax.CreateCollection method.

The CollectionSyntax object provides one method, Add, which allows you to add elements to the collection.

Members

Example

For examples of using the CollectionSyntax object, see Generating Statement Collections.

See Also

Syntax Object
CreateCollection Method
Script Extensions
Generating Statement Collections

Highlight search results