TMtxExpression.VarToolTip Method

String VarToolTip(String aName, TValueRec a)

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

#NameTypeDescription
1aNameString
2aTValueRec

Returns: String

Remarks:

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).