Please enable JavaScript to view this site.

 

int = GetHolDateFromTable()

 

This macro function returns the date 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.

 

In practice, the function GetHolDateFromTable is rarely used, as the 2 functions which can move the holidays table cursor are either defined as being for a fixed date (FindNextHolidayOnDate), or supply the date of the holiday as a result of being called (GetNextDateForHolidayId).

 

The macro code below reads the date of the current holiday after successfully finding an occurrence.

Reset_GetNextDateForHolidayId()
nDate = GetNextDateForHolidayId(nHolidayId, nYear)
if nDate > 0
   nDateFromTable = GetHolDateFromTable()
   // nDateFromTable is the same date as nDate
endif

See also: GetHolAbbreviationFromTable, GetHolIdFromTable, GetHolTextFromTable, GetHolNameFromTable.

 


Topic 105135, last updated on 11-Oct-2026