GetHolDurationFromTable

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

GetHolDurationFromTable

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

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.


Topic 178275 updated on 11-Jun-2009.
Topic URL: http://www.qppstudio.net/webhelp/index.html?getholdurationfromtable.htm