I'm using crystal reports XI and am trying to implement a function. Is there an if/endif construct so that I can include more than one statement following my if statement? In the example below, I have to repeat the if statement twice, once for each statement I would like executed.
WhilePrintingRecords;
Global numberVar AccCnt;
Global numberVar AccTm;
Global stringVar LastId;
if {Sheet2_Print_Area.Region} <> LastId then
AccCnt = 0;
if {Sheet2_Print_Area.Region} <> LastId then
AccTm = 0;
LastId := {Sheet2_Print_Area.Region_Name};
WhilePrintingRecords;
Global numberVar AccCnt;
Global numberVar AccTm;
Global stringVar LastId;
if {Sheet2_Print_Area.Region} <> LastId then
AccCnt = 0;
if {Sheet2_Print_Area.Region} <> LastId then
AccTm = 0;
LastId := {Sheet2_Print_Area.Region_Name};