fastreport C++ Script IFF add unwanted data on charts
i'm working on FastReport 4, trying to add charts
i'm receiving data from Database in the data there is a column call "PayType",
i want to add condition if the PayType==1 then add data to the chart else do nothing , the statement i'm using to do that is "IFF" ,but it force me to add 2nd condition (as else ) the thing that add wrong values to the chart . my statment is :
the question is : Is there any way to do if statement without else in the FastReport ? like if (condition 1) {do the work } else do nothing !
all regards .
i'm receiving data from Database in the data there is a column call "PayType",
i want to add condition if the PayType==1 then add data to the chart else do nothing , the statement i'm using to do that is "IFF" ,but it force me to add 2nd condition (as else ) the thing that add wrong values to the chart . my statment is :
(IIF(<MonthlyMovementOfMat_Report."PayType">==0,<MonthlyMovementOfMat_Report."PeriodEndDate">,"Null" ))//Here is the problem it adds null string !
(IIF(<MonthlyMovementOfMat_Report."PayType">==0,<MonthlyMovementOfMat_Report."Quantity">,"")) //if condition 1 is false it add 0 value !
the question is : Is there any way to do if statement without else in the FastReport ? like if (condition 1) {do the work } else do nothing !
all regards .
Comments