GetHolDurationFromTable
int = GetHolDurationFromTable()
This macro function returns the duration of the current holiday (ie. how many days this holiday lasts) in the holidays table. This function overlaps with GetDateForHolidayId and is part of a set of advanced functions that give you direct access to the holidays tables.
// initialize the holidays table
Reset_FindHolidayOnDate()
// check if there is a holiday today
if FindHolidayOnDate(Today(), nHolSet)
sName = GetHolNameFromTable()
nID = GetHolDurationFromTable()
sRESULT = 'The holiday ,' + sName + ', lasts ' + IntToStr(nID)) + ' days'
endif
See also: GetHolDateFromTable, GetHolIdFromTable, and GetHolNameFromTable which are used to read information about the current holiday record in the holidays table.