1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Type
TMonDateEditDb = Class(TDateEditDb)
FDatemin : TDatetimes;
FDatemax : TDatetimes;
....
Constructor Create(...)
Function GetDateMin : TDatetimes;
Function GetDateMax : TDatetimes;
Procedure SetDateMin(adate : TDatetimes);
Procedure SetDateMax(adate : TDatetimes);
Property Datemin : TDatetimes read GetDateMin write SetDateMin
Property Datemax : TDatetimes read GetDateMax write SetDateMax
end;
....
Constructor TMonDateEditDb.Create(...);
begin
Inherited Create;
FDatemin := DateDecDays(now,1); // un jour avant
FDatemax := DateIncDays(now,1); // un jour apres
....
end;
.... |
Partager