DewString VarToolTip(const DewString &aName, TValueRec *a);
Returns Tool-Tip or the Hint string to be displayed for the variable with aName.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aName | const DewString & | |
| 2 | a | TValueRec * |
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).
Declared in Dew::Math::TMtxExpression · Dew.Math/MtxParseExpr.h · Cross-compiler