Hi
Below code is in Page Header Suppress confition . It is giving error on CurrPage value
whileprintingrecords;
booleanvar i;
numbervar CurrentPage = CurrPage;
if (i := true and pagenumber > CurrentPage) then true else false
Below Formula is in Details section :-
whileprintingrecords;
booleanvar i;
Global numbervar CurrPage;
if {#RTotal0} = {Command.No of Records} then
(
CurrPage := PageNumber;
i:=true;
)
Thanks
Abhishek YadavPosted Aug 31, 2023, 7:39 AM
The error you are getting on
CurrPageis likely because it is not declared as a global variable in the Page Header Suppress condition.To fix this, you need to declare
CurrPageas a global variable in the header section as well. Here is the updated code:Declare
CurrPageas a global variable in the Page Header section:Then, in the Page Header Suppress formula, you can access the value of
CurrPage:Make sure to also include the updated code in the Details section:
By declaring
CurrPageas a global variable, it will allow both the Page Header and Details sections to access and modify its value.