Expression.Evaluate

Syntax

Expression.Evaluate( evaluationContext, evaluationOptions = EvalOption_NoOptions)

Return Value

PropertyObject

Returns the result of the expression in the form of a PropertyObject. The PropertyObject can contain a value of any type depending on the expression. Release the result when you finish using it. If the expression is empty and you pass EvalOption_AllowEmptyExpression , this method returns a NULL dispatch pointer or object reference.

Purpose

Evaluates an expression and returns the result.

Parameters

evaluationContext As PropertyObject

[In] Specifies the context in which to evaluate the expression. This method uses this object to locate variables the expression specifies.

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.

This parameter has a default value of EvalOption_NoOptions .

See Also

Engine.CheckExpression

Engine.CheckExprSyntax

EvaluationOptions

Expression.Validate

Expression.ValidateEvaluationType

PropertyObject

PropertyObject.EvaluateEx