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


Previous pageReturn to chapter overviewNext page

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


// check if there is a holiday today

if FindNextHolidayOnDate(Today(), nHolSet)

 sName = GetHolNameFromTable()

 nID = GetHolDurationFromTable()

 sRESULT = 'The holiday ,' + sName + ', lasts ' + IntToStr(nID)) + ' days'



See also: GetHolDateFromTable, GetHolIdFromTable, and GetHolNameFromTable which are used to read information about the current holiday record in the holidays table.

Topic 178275 updated on 29-Sep-2017.
Topic URL: