GetHolIdFromTable

Navigation:  Macros > 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.

 

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 updated on 16-Feb-2019.
Topic URL: https://www.qppstudio.net/webhelp_xe3/index.html?getholidfromtable.htm