Value of previous record

yvesarchambaultyvesarchambault Lacolle, Qu?©bec
edited November 2011 in FastReport 4.0
Hi, I want to highligth some records in a report according to :
there is a hole between 2 dates.

ex.
EmpId startDate     EndDate       JobCode
1        2009.09.01  2009.09.14   345
1        2009.09.15  2009.09.29   344
1        2009.09.30  2009.10.12   240
1        2009.10.20  2009.10.27   345            This line should be highligthed
1        2009.10.28  2009.11.14   900

Is it possible to do that with Pascal Script ?
An example would be a great start.

I have try this to access the date value but I receive a message:
"Incompatble types: String, Extended"
var
  dFin: Date;
    
procedure frxReport1OnStartReport(Sender: TfrxComponent);
begin
  set(dFin, HorssquenceFIN1.Value);  // <<-- Message         
// set(dFin, <Hors-s?©quence."FIN">)
end;

procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin

  if <Hors-s?©quence."DEBUT"> <> (dFin + 1) then
    HorssquenceDEBUT1.Color := clRed                                 
  else
    HorssquenceDEBUT1.Color := clBlack;
   
   set(dFin, HorssquenceFIN1.Value); 
end;

begin

end.

Thanks

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.