CQG API 4.0 - Revised
AddSubExpression Method
See Also  Send Feedback
sub_expression

The sub-expression string.

Please refer to the CQG Studies page for more information on how to formulate a sub-expression.

alias_

Sub-expression's alias (optional).

If not provided, it will be generated from sub_expression.

Aliases are case-insensitive.

Duplicate aliases in the same request are not allowed.

CQGExpressionRequest Interface : AddSubExpression Method

Glossary Item Box

Description

Adds a new sub-expression to the expression.

Syntax

Visual Basic
Public Sub AddSubExpression( _
   ByVal sub_expression As String, _
   Optional ByVal alias_ As String = "" _
) 

Parameters

sub_expression

The sub-expression string.

Please refer to the CQG Studies page for more information on how to formulate a sub-expression.

alias_

Sub-expression's alias (optional).

If not provided, it will be generated from sub_expression.

Aliases are case-insensitive.

Duplicate aliases in the same request are not allowed.

Remarks

An exception will be thrown if sub_expression is empty.

An exception will be thrown if the provided or generated alias duplicates (case-insensitively) an existing alias in the expression request.

See Also