execute procedure if (condition)

Hi all,

My need is to execute procedure only if condition is passed. Here is my code:
wrote:
begin
SP.Params[0].Value := Report.VarParams;
SP.ExecProc;
end.

I should execute procedure only when cnt >= 1
wrote:
select count(1) as cnt
from table1
where adate = SP.Params[0].Value

Show me some example pls.

Fastreport version: 4.8.27

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.