4. September 2007 18:26
4. September 2007 23:19
5. September 2007 08:13
5. September 2007 08:55
5. September 2007 09:22
IF EVALUATE(DateFormulaFeld,GetDateFormula(Datum1,Datum2)) then;
5. September 2007 09:24
5. September 2007 09:25
Natalie hat geschrieben:Das heißt, im Downloadbereich ist auch nichts dergleichen vorhanden?
5. September 2007 10:13
5. September 2007 11:05
CLEAR(pDateFormula);
DayCounter := CountDays(FromDate, ToDate, CalendarCode);
TxtDateFormula := '<' + FORMAT(DayCounter) +'D>';
EVALUATE(pDateFormula, TxtDateFormula);
IF CalendarCode = '' THEN
EXIT(ToDate - FromDate);
IF FromDate = ToDate THEN
EXIT(0);
CountDays := 0;
IF FromDate < ToDate THEN
TxtDateFormulaStep := '<1D>'
ELSE
TxtDateFormulaStep := '<-1D>';
REPEAT
IF NOT CalendarMgt.CheckDateStatus(CalendarCode, FromDate, DummyDesc) THEN
CountDays += 1;
FromDate := CALCDATE(TxtDateFormulaStep, FromDate);
UNTIL FromDate = ToDate;
EXIT(CountDays);