Hello
I'm tyring to write following code in a formula and its throwing error. Can someone help in this. I need a count variable to count the number of lines printing in the detail to add to string that is being used in trailer.
Shared Numbervar count;
if {APY2055.PYMNT_STATUS} ='P' THEN
('300'+{@transit_nbr} + right({@account_number},7) + {@check_number} + {@check_amount}+ {@Client_ref_space} +{@filler_53to60}+{@check_dt}+ {@filler_67to80};
count:=count+1)
ELSE IF {APY2055.PYMNT_STATUS} ='S' THEN
('311'+{@transit_nbr} + right({@account_number},7) + {@check_number} + {@check_amount}+ {@Client_ref_space} +{@filler_53to80};
count:=count+1)
Thanks
Mano