Value of previous record
yvesarchambault
Lacolle, Qu?©bec
Hi, I want to highligth some records in a report according to :
there is a hole between 2 dates.
ex.
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"
Thanks
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