Navigation:  Appendices > Macro Language > Built-in Functions > All Functions (Alphabetical) >


Previous pageReturn to chapter overviewNext page

str = GetHolSymbolsFromTable()


This macro function returns a string made up of the holidays symbol(s) of the holiday at which the holidays database cursor is currently positioned. To set the current record to a desired holiday occurrence you would use one of the functions such as : FindHolidayOnDate or GetDateForHolidayIdOfYear.


Note that when you make a call to GetHolSymbolsFromTable, and there is at least one holidays symbol for the current holiday, Q++ generates p-Code to ensure that the result of this call will be changed to the appropriate font, that is the symbol font of the current Holidays Set, in the output file.


So, for example, in the code below:


sCurHolText = GetHolTextFromTable()

sCurHolSymbols = GetHolSymbolsFromTable()

if sCurHolSymbols <> ''

 sCurHolSymbols = sCurHolSymbols + '&n'


sRESULT = sCurHolSymbols + sCurHolText


You are assured that the symbols at the beginning of sRESULT will be in the symbol font of the Holidays Set,



while the rest of sRESULT will use the font of the token in the GridTemplate.

Topic 110055 updated on 01-Nov-2016.
Topic URL: