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.
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 during a given period of time, but do not care what the details are.
The macro code below checks if there is an e-holiday in the current month and, if so, displays a mention that the * near a holiday means that it's regional.
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 01-Aug-2020