You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxExpression Class > TMtxExpression Methods > TMtxExpression.ClearAll Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxExpression.ClearAll Method

Clears all expressions and all defined variables.

Syntax
C#
Visual Basic
public void ClearAll();

Clear everything.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example(TMtxExpression myParser) { // 1. Example myParser.DefineDouble("omega"); myParser.DefineDoubleConstant("hbar"); myParser.AddExpr("hbar*omega"); // 2. Clear everything myParser.ClearAll(); // 3. What happened ? int eCount = myParser.ExprCount() // returns 0 // Also, all defined the variable, constant varying function, operator, // etc.. lists are cleared. } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!