DestroyExpression()

Summary

Destroys an expression field.

Syntax

DestroyExpression(string field_spec)

Argument Contents
field_spec The expression field to be destroyed.

Notes

  • If the input field is an expression field on a joined view, and the joined view inherits this field from one of its component views, then the expression fields on both the joined view and the component view are destroyed.

Example

DestroyExpression("States.[Population Density]")

Error Codes

Error Type Meaning
Error The input field is not an expression field; or the input expression field is used as a link field in a joined view or is otherwise in use
NotFound The specified field does not exist

See Also

Function Summary
CreateExpression() Creates an expression field on a view
VerifyExpression() Verifies the validity of an expression
GetExpressions() Returns an array of all expression fields defined in a view
GetExpressionInfo() Returns information about an expression (formula) field