Please enable JavaScript to view this site.

 

str = GetHolTextFromTable(bFullText)

 

meaning of bFullText

meaning of bFullText

This macro function returns the plain text part of the current holiday in the holidays table, including the effects of holiday name variations.

 

The current holiday in the holidays table is due to previous calls to functions which move the cursor in the holidays table, such as FindNextHolidayOnDate and GetNextDateForHolidayId.

This is a rather advanced function that assumes that you are familiar with the details of holiday names and holiday name variations and the use of observance labels in the names or name variations of recurring holidays as well as the name of one-time-dates. In particular, observance labels will not be removed from the result of this macro function; the result will be the same as the one displayed in the holidays manager.

 

The parameter bFullText specifies if you also want the text of the holiday name variations (bFullText = true) or just the text of the holiday name (bFullText = false).

 

In the example on the right, calling GetHolTextFromTable(false) would only return "Christmas Day" or "Christmas Holiday" (depending on the date being a day in lieu or not), but calling GetHolTextFromTable(true) would also include the name variations, including the >>>.

 

The macro code below checks if the current holiday in the holidays table contains any name variations for days in lieu.

sText = GetHolTextFromTable(true)
if pos('DUP=', sText) > 0 
   bHasDayInLieuVariations = true
endif

If you need to get the formatted text of a holiday name, with bold italic etc... attributes, then you should use the GetHolNameFromTable function instead.

 

Se also: GetHolTextOverrideFromTable, the ALWAYS holiday name variation, observances in holiday names.

 


Topic 110054, last updated on 13-Sep-2026