Navigation:  Macros > Macro Language > Built-in Functions > All Functions (Alphabetical) >


Previous pageReturn to chapter overviewNext page

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 updated on 16-Feb-2019.
Topic URL: