API Documentation > CorelDRAW > 2025-v26 > TextRange > IVGTextRange
TextRange.Evaluate method
Evaluates the given CQL expression using properties of the text range and returns the result of the expression
Syntax:
Function Evaluate(ByVal Expression As String) As Variant
Parameters:
Name Type Description
Expression
String
Remarks:
The Evaluate method evaluates a given Corel Query Language (CQL) expression by using the properties of a text range and returns the result of the expression. For information on CQL, see the section "Including queries in macros."