Please enable JavaScript to view this site.


int = GetHolIdFromTable()


This macro function returns the holiday ID of the current holiday in the holidays table.


The current holiday in the holidays table is due to previous calls to functions which move the cursor in the holidays table, such as FindNextHolidayOnDate and GetNextDateForHolidayId.


The macro code below builds a string containing the ID of every holiday of nHolSetID occurring on n_TokenDate.

sResult = ''
// initialize the holidays table
// find the first holiday, if any, of set nHolSetID
while FindNextHolidayOnDate(n_TokenDate, nHolSetID)
   nCurHolID = GetHolIdFromTable()
   if sResult <> ''
      sResult = sResult + ','
   sResult = sResult + IntToStr(nCurHolID)

See also: GetHolDateFromTable, GetHolDurationFromTable, GetHolTextFromTable, GetHolNameFromTable.


Topic 105136, last updated on 18-Apr-2020