You are here: Symbol Reference > MtxParseExpr Namespace > Classes > TMtxExpression Class > public > DefineVariable Method > TMtxExpression.DefineVariable Method (string)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxExpression.DefineVariable Method (string)

Defines new variable.

Pascal
function DefineVariable(const AVarName: string): TValueRec; overload;
Parameters 
Description 
AVarName 
Defines variable name. Type of variable (double/complex/vector/matrix) must be defined before any Evaluate method will be called. If variable with name AVarName was already defined, it will be redefined and all expressions which contain the symbol AVarName will be recompiled before the next evaluation.  
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!