Get page break by code in the OBP event
I have this code in my OBP event of the master data band:
But it doesn't work.
ARTIKELGR is a variable that I have made within the report and
[frm_AfdrukkenLijstBestelboek.cldtst_VoorraadLijstBestelboek."ARTIKELGROEPID"] is a field of my clientdataset. The type of this field is Integer.
Does anybody have a solution for this problem?
 if [ARTIKELGR] <> [frm_AfdrukkenLijstBestelboek.cldtst_VoorraadLijstBestelboek."ARTIKELGROEPID"] then
 begin
  NewPage;
 end;
 [ARTIKELGR] := [frm_AfdrukkenLijstBestelboek.cldtst_VoorraadLijstBestelboek."ARTIKELGROEPID"];
But it doesn't work.
ARTIKELGR is a variable that I have made within the report and
[frm_AfdrukkenLijstBestelboek.cldtst_VoorraadLijstBestelboek."ARTIKELGROEPID"] is a field of my clientdataset. The type of this field is Integer.
Does anybody have a solution for this problem?
Comments
if [ARTIKELGR] <>
where are you setting the value in the variable.
or you may want to reverse left and right sides of boolean equation
and possibly wrap boolean equation with () or []
regards
In my delphi code before the report is prepared:
In the OBP event of the master data band: