You are here: Symbol Reference > MtxParseExpr Namespace > Classes > TMtxExpression Class > public > TMtxExpression.Undefine Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxExpression.Undefine Method

Removes symbol from defined symbols.

Pascal
function Undefine(const AName: string): boolean;
Parameters 
Description 
AName 
Defines the name of removed symbol. 

True, if removing symbol AName was successful.

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.

Uses MtxParseExpr, MtxParseClass; procedure Example(myParser: TMtxExpression); var success: Boolean; begin succes := myParser.Undefine('x'); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!