Please enable JavaScript to view this site.

 

Navigation: Macros > Macro Language > Built-in Functions > All Functions

GetHolAbbreviationFromTable

Scroll Prev Up Next More

str = GetHolAbbreviationFromTable()

 

This macro function returns the abbreviations of the current holiday in the holidays table.

 

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.

 

The macro code below gets the abbreviation of the first holiday of holidays set nHolSetID today.

// initialize the holidays table
Reset_FindNextHolidayOnDate()
// find the first holiday, if any, of set nHolSetID
if FindNextHolidayOnDate(Today(), nHolSetID)
   sAbbreviation = GetHolAbbreviationFromTable()
endif

See also: GetHolDateFromTable, GetHolIdFromTable, GetHolTextFromTable, GetHolNameFromTable.

 


Topic 152300, last updated on 18-Apr-2020