bool = HolidayOfListInPeriod(sHolListChar, nDate1, nDate2)
This macro function checks if there is at least one holiday or one-time-date for the holidays list sHolListChar in the period ranging from nDate1 to nDate2, inclusively.
Use 'a', 'e', 'i', 'o', or 'u' for the corresponding holidays list of the current DiaryGridLine, or 'x' for the script’s additional holidays list.
This function is useful if you only want to know that there is at least one holiday occurrence during a given period of time, but do not care what the details are.
Example
In the code below, the e-holidays list contains regional or partial holidays. The macro checks whether any occur in the current month and, if so, displays an explanatory note.
sResult = ''
nMinDate = FirstDateOfMonth(n_TokenYear,n_TokenMonth)
nMaxDate = LastDateOfMonth(n_TokenYear,n_TokenMonth)
if HolidayOfListInPeriod('e', nMinDate, nMaxDate)
sResult = '* partial or regional holiday'
endif
See also: HolidayOfListOnDate and HolidayOfSetInPeriod.
Topic 125300, last updated on 16-Oct-2026