ExpressionEdit.CheckExpression

Syntax

ExpressionEdit.CheckExpression( errorDescription, errorStartPosition, errorEndPosition)

Return Value

TSError

An error code.

Purpose

Returns the result of the error checking the ExpressionEdit.ErrorCheck , ExpressionEdit.SetValidEvaluationTypes , and ExpressionEdit.GetValidEvaluationTypes methods specify.

Remarks

When you call this method, the ExpressionEdit control might modify the text to automatically prefix variables that do not have a full path specified.

Calling this method does not display an error.

To display an error, call the ExpressionEdit.DisplayError method.

Parameters

errorDescription As String

[Out] When an error exists, this parameter returns an error message that describes the error.

errorStartPosition As Long

[Out] When an error exists, this parameter returns the starting character index of the error in the expression.

errorEndPosition As Long

[Out] When an error exists, this parameter returns the index of one character past the ending character index of the error in the expression.

See Also

EvaluationTypes.AllowedArrayRepresentations

EvaluationTypes.AllowedRepresentations

ExpressionEdit.AllowEmpty

ExpressionEdit.Context

ExpressionEdit.DisplayError

ExpressionEdit.ErrorCheck

ExpressionEdit.GetValidEvaluationTypes

ExpressionEdit.SetValidEvaluationTypes