Usage of Variables
I add some float Variables to the Report
Code snippe :
procedure AddFrxVariable( fReport : TFrxReport; sVarName : String; Value : Variant );
fReport.Variables.Variables[ sVarName ] := Value;
fReport.Script.Variables[ sVarName ] := Value;
...
but every time, if i want to use them in an Memo like [VarName], i get an Exception
"...Memoxxx, Error in expression 48,9792".
The Value is correctly assigned with 48.9792 and the same Exception also come, if this value is assign as an quoted formated string.
The only way, to use them, is an conversion into an integer and recalculation in the report !
Is this an Bug or an undocumented Feature.
Version 3.24 on an German XP SP2
Code snippe :
procedure AddFrxVariable( fReport : TFrxReport; sVarName : String; Value : Variant );
fReport.Variables.Variables[ sVarName ] := Value;
fReport.Script.Variables[ sVarName ] := Value;
...
but every time, if i want to use them in an Memo like [VarName], i get an Exception
"...Memoxxx, Error in expression 48,9792".
The Value is correctly assigned with 48.9792 and the same Exception also come, if this value is assign as an quoted formated string.
The only way, to use them, is an conversion into an integer and recalculation in the report !
Is this an Bug or an undocumented Feature.
Version 3.24 on an German XP SP2