I have a problem with an IF
statement in FastReport.
I want to check if ProgramName = ""
, then change Memo1.Text = "ONLY FOR CALCULATION"
, if not, then "OTHER"
procedure rara(Sender: TfrxComponent);
var
ProgramName : sring;
begin
ProgramName := <Nest."PrgName">;
if ProgramName = "" then
begin
memo1.Text = "ONLY FOR CALCULATION";
end
else
begin
Memo1.Tex = "OTHER";
end
end;
end;
The error I see is:
'THEN' Expected
Do you have any ideas?