Hi, I have this formula called @holiday which count the number of holidays in a range of dates and it is working.
//{@holiday}
//Holiday Listing formula to go into the report header of the report.
WhileReadingRecords;
Local DateVar Start := Date(CovRJTim({HPD_Helpdesk.Create_Time}));
Local DateVar End := Date(currentdatetime);
Local Numbervar Hol;
DateVar Array Holidays := [Date (2011,05,30),
Date (2011,12,25),
Date (2011,12,31)];
Local NumberVar i;
For i := 1 to Count (Holidays)
do (if DayOfWeek ( Holidays ) in 2 to 6 and
Holidays in start to end then Hol:=Hol+1 );
Hol
//end of formula
But I have this field called {Holiday.HDate} which has the complete set of holidays date and the format is in mm/dd/yyyy.
How can i use this field in an array instead of the manual input of dates?
this is not working ---> DateVar Array Holidays := [Date({Holiday.HDate})];
Hope to here from you sirs....
//{@holiday}
//Holiday Listing formula to go into the report header of the report.
WhileReadingRecords;
Local DateVar Start := Date(CovRJTim({HPD_Helpdesk.Create_Time}));
Local DateVar End := Date(currentdatetime);
Local Numbervar Hol;
DateVar Array Holidays := [Date (2011,05,30),
Date (2011,12,25),
Date (2011,12,31)];
Local NumberVar i;
For i := 1 to Count (Holidays)
do (if DayOfWeek ( Holidays ) in 2 to 6 and
Holidays in start to end then Hol:=Hol+1 );
Hol
//end of formula
But I have this field called {Holiday.HDate} which has the complete set of holidays date and the format is in mm/dd/yyyy.
How can i use this field in an array instead of the manual input of dates?
this is not working ---> DateVar Array Holidays := [Date({Holiday.HDate})];
Hope to here from you sirs....