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

Returns Tool-Tip or the Hint string to be displayed for the variable with aName.

Pascal
function VarToolTip(const aName: string; const a: TValueRec): string;

The value of the variable needs to be passed as param "a" and the name of the variable as "aName". Typically one would write: 

 

aVal := expr.VarByName[aName]; if Assigned(aVal) then //var was found begin ShowHint := True; Hint := expr.VarToolTip(aVal, aName); end ShowHint := False;

 

The returned string will contain the name of the variable, its type and the value(s).

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!