bool = HolidayOfListOnDate(sHolListChar, nDate)
This macro function checks if there is at least one holiday or one-time-date for the holidays list sHolListChar on the date nDate.
The allowed values for sHolListChar are any of the following: 'a', 'e', 'i', 'o', 'u'.
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 an a-holiday on the date of the incoming macro token and, if so, changes itself to red.
sResult = '[' + s_LangDayToken + ']'
if HolidayOfListOnDate('a', n_TokenDate)
sResult = FormatText(sResult, 'COLOR(RED)', -1))
endif
See also: HolidayOfListInPeriod and HolidayOfSetOnDate.
Topic 125200, last updated on 08-Sep-2026