Please enable JavaScript to view this site.


bool = HolidayOfSetOnDate(nHolSetId, nDate)


This macro function checks if there is at least one holiday or one-time-date for the holidays set of nHolSetId on the date nDate.


If the holidays set nHolSetID is not referred to in any of the aeiou-holidays, then you should make sure it is in the list of included holidays.


This function is useful if you only want to know that there is at least one holiday occurrence on a given day, but do not care what the details are.


The macro code below checks if there is a holiday of a set of special holidays on the date of the incoming macro token and, if so, changes itself to red.

nHolSetID = 32154 // a special holidays set
sResult = '[' + s_LangDayToken + ']'
if HolidayOfSetOnDate(nHolSetID, n_TokenDate)
   sResult = FormatText(sResult, 'COLOR(RED)', -1))

See also: HolidayOfListInPeriod and HolidayOfSetOnDate.


Topic 153300, last updated on 10-May-2022