Expression.Validate

Syntax

Expression.Validate( evaluationContext, checkSyntaxOnly, evaluationOptions, errMsg, errorCharIndex, errorEndCharIndex)

Return Value

Boolean

Returns True if the expression is valid. Returns False if the expression contains an error.

Purpose

Checks the validity of an expression and returns error information.

Parameters

evaluationContext As PropertyObject

[In] Specifies the context in which to evaluate the expression. This method uses this object to determine whether the variables in the expression are valid.

checkSyntaxOnly As Boolean

[In] Pass True to check the expression syntax only. Pass False to also verify that the variables in the expression are valid.

evaluationOptions As Long

[In] Pass 0 to specify the default behavior, or pass one or more EvaluationOptions constants. Use the bitwise-OR operator to specify multiple options.

errMsg As String

[Out] If the expression is invalid, this parameter returns a description of the error.

errorCharIndex As Long

[Out] If the expression is invalid, this parameter returns the character index of the start of the invalid portion of the expression.

errorEndCharIndex As Long

[Out] If the expression is invalid, this parameter returns the character index of the end of the invalid portion of the expression.

See Also

Engine.CheckExpression

Engine.CheckExprSyntax

EvaluationOptions

Expression.Evaluate

Expression.ValidateEvaluationType

PropertyObject

PropertyObject.EvaluateEx