Initialize a TppDBText when using SuppressRepeatedValues
Hi,
I've the case that I suppress the repeeting of values DateField.
But if another Field changes its value then the Datfield should show its
value even it may be equal to the preceding value.
Ist it possible to clear the "old-value" in that case.
RB9.03, D6
--
Norbert
I've the case that I suppress the repeeting of values DateField.
But if another Field changes its value then the Datfield should show its
value even it may be equal to the preceding value.
Ist it possible to clear the "old-value" in that case.
RB9.03, D6
--
Norbert
This discussion has been closed.
Comments
I believe the easiest way to accomplish this would be to take control of the
visibility of the DBText yourself. Inside the Band.BeforePrint event you
could keep track of the date value as well as any other values and toggle
the visibility of the date DBText accordingly. Something like the
following...
//First check the other field
if Report.DataPipelie['MyOtherField'] <> FOtherValue then
begin
FOtherValue := Report.DataPipeline['MyOtherField'];
FDate := 0;
end;
//Standard Suppress Repeated Value
if Report.DataPipeline['MyDateField'] <> FDate then
begin
FDate := Report.DataPipeline['MyDateField'];
DBText1.Visible := True;
end
else
DBText1.Visible := False;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com