Please enable JavaScript to view this site.

 

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.

 

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 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 16-Oct-2026