mardi 24 septembre 2019

FastReports pascalscript if

I have problem with IF in FastReport. I want to check if programname = "", change Memo1.Text = "ONLY FOR CALCULATION" if not "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;

What error I see:

'THEN' Expected

You have any ideas ??

Aucun commentaire:

Enregistrer un commentaire