ExpressionEval.FlushExpr

Ee825334.c++_on(en-US,CS.10).gifEe825334.vb_off(en-US,CS.10).gif

Use this method to remove the specified expression from the expression cache.

Definition

Sub FlushExpr(nExprID As Long)

Parameters

nExprID

[in] A Long that contains the identifier of the expression to be removed from the expression cache.

Return Values

None.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to either standard or custom COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors.

The following table shows the custom COM errors that this method can return.

Constant Value Description
E_EXPR_BADEXPRID &H8110000A Invalid expression ID specified

Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

The FlushExpr method removes the specified expression from the expression cache and decrements the read-only ExprCount property by one (1).

Use the FlushAll method to remove all expressions from the expression cache.

See Also

ExpressionEval Object

ExpressionEval.ExprCount

ExpressionEval.FlushAll

ExpressionEval.LoadAll

ExpressionEval.LoadExpr


All rights reserved.