variables getvalue
hi
my problem is that i have variable 'firm_name' in my report and in my sorce code
i wrote
procedure TMainForm.actionfrxReportGetValue(const VarName: String;
var Value: Variant);
begin
if VarName='firm_name' then
Value:=ParamsForm.FirmaImeEdit.Text;
end;
BUT when this procedure is executing the const VarName is empy string - '' and report can not create preview. the error is
---
Memo8: Error in expression'': Expression expected
---
this metod i saw in topic
http://www.fast-report.com/ru/forum/index....753&hl=variable
my problem is that i have variable 'firm_name' in my report and in my sorce code
i wrote
procedure TMainForm.actionfrxReportGetValue(const VarName: String;
var Value: Variant);
begin
if VarName='firm_name' then
Value:=ParamsForm.FirmaImeEdit.Text;
end;
BUT when this procedure is executing the const VarName is empy string - '' and report can not create preview. the error is
---
Memo8: Error in expression'': Expression expected
---
this metod i saw in topic
http://www.fast-report.com/ru/forum/index....753&hl=variable
Комментарии
P.S.
There is english forum.
sorry next topic i will post in english version
but just finish this one
my variable is in memo object
memo8 has one line [firm_name]
this is working FINE
but, my problem was that i declare variable in designer
from the menu Report->Variables
i created new category1, then new variable firm_name
and i got the error.
now i deleted this variable and left onli in the memo8 text [firm_name]
and it passed withot error
10Q again !