TMtxExpression.EvaluatedVarName Method

function EvaluatedVarName(Index: Integer): string;

Returns the name of the result variable for expression at Index.

#NameTypeDescription
1IndexIntegerstart index

Returns: String

Remarks:

Use this method to retreive the name of result variable of the expression stored at position Index. In case of a = b + c, the name of the result variable is "a". In case of b + c, the result variable has no name. The object stores a list of expressions and therefore requires an index to specify the name of the result of which expression is desired.

See Also: TMtxExpression.ClearAll, TMtxExpression.ClearExpressions