GetHolIdFromTable

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

GetHolIdFromTable

Previous pageReturn to chapter overviewNext page

int = GetHolIdFromTable()

 

This macro function returns the holiday ID of the current holiday 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

FindHolidayOnDate(0,0)

// check if there is a holiday today

if FindHolidayOnDate(Today(), nHolSet)

 nID = GetHolIdFromTable()

 sRESULT = Concat('The holiday ID is ', IntToStr(nID))

endif

 

To set the current record to a desired holiday occurrence you would use one of the functions such as : FindHolidayOnDate or GetDateForHolidayIdOfYear. The 3 functions GetHolDateFromTable, GetHolIdFromTable, and GetHolNameFromTable are used to read information about the current holiday record in the holidays table.


Topic 105136 updated on 03-Jan-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?getholidfromtable.htm