TMtxExpression.Undefine Method

function Undefine(const AName: string): Boolean;

Removes symbol from defined symbols.

#NameDescription
1ANameDefines the name of removed symbol.

Returns: Boolean - True, if removing symbol AName was successful.

Remarks:

Note:
Any variables, constanst, functions and operators may be undefined. This is different from the "undefine" function called from the script, which will simply undefine the type of the variable thus allowing it to have its type defined again.

Examples
Uses MtxParseExpr, MtxParseClass;

procedure Example(myParser: TMtxExpression);
var success: Boolean;
begin
    succes := myParser.Undefine('x');
end;
See Also: TMtxExpression.DefineVariable, TMtxExpression.DefineDouble, TMtxExpression.DefineComplex, TMtxExpression.DefineVector, TMtxExpression.DefineMatrix, TMtxExpression.DefineFunction, TMtxExpression.DefineVaryingFunction, TMtxExpression.DefineOperator, TMtxExpression.DefineDoubleConstant, TMtxExpression.DefineComplexConstant