Hello everybody, I've the following code in a report:
IF
("Gen. Prod. Posting Group"='001') AND
("Entry No."<>56920) AND
("Document Type"="Document Type"::" ")
THEN
BEGIN
CurrReport.SHOWOUTPUT(FALSE);
contador:=contador-1;
END;
But, on Entry No. section I want to put several entry numbers but I can't, I don't know what is the condition; on DataItemTableView I can put for example 56920&<>58756&<>57486 but on report sections i doesn't run. How can I put serveral numbers?.
Many thanks in advance.
1
Comments
There are several solutions one of them can be re-arrange your code lines, for example:
IF
("Gen. Prod. Posting Group"='001') AND
("Document Type"="Document Type"::" ")
THEN
BEGIN
if ("Entry No."<>56920) AND
("Entry No."<>56921) AND
("Entry No."<>56922)
then
begin
CurrReport.SHOWOUTPUT(FALSE);
contador:=contador-1;
end
END;
Probably there are more efficient ways but this one popped-up when i looked at your code.
Gerrit
IF
("Gen. Prod. Posting Group"='001') AND
("Document Type"="Document Type"::" ")
THEN
BEGIN
if (("Entry No."<>56920) AND
("Entry No."<>56921) AND
("Entry No."<>56922))
then
begin
CurrReport.SHOWOUTPUT(FALSE);
contador:=contador-1;
end
END;
Thank you very much for your help.
so if sentence will be:
if NOT ("Entry No." IN [56920,56921,56922]) then