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
Reset_FindNextHolidayOnDate()
// find the first holiday, if any, of set nHolSetID
while FindNextHolidayOnDate(n_TokenDate, nHolSetID)
nCurHolID = GetHolIdFromTable()
if sResult <> ''
sResult = sResult + ','
endif
sResult = sResult + IntToStr(nCurHolID)
endwhile
See also: GetHolDateFromTable, GetHolDurationFromTable, GetHolTextFromTable, GetHolNameFromTable.
Topic 105136, last updated on 18-Apr-2020