Reset_GetNextDateForHolidayId

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

Reset_GetNextDateForHolidayId

Previous pageReturn to chapter overviewNext page

void = Reset_GetNextDateForHolidayId()

 

A call to Reset_FindHolidayOnDate ensures that your position in the holidays data table goes back to the first entry, so that you do not miss any holiday. As with other void functions you do not need to assign the result of this function to any variable :

 

// initialize the table

Reset_GetNextDateForHolidayId()

nYear = 1999

nHolidayId = 1878

// find an occurrence and add it to the string sRESULT

nDate = GetNextDateForHolidayId(nHolidayId,nYear)

sRESULT = Concat(sRESULT, FormatDate('c',nDate))

// look for other occurrences of same holidays, same year

while NotEqualN(nDate,0)

 sRESULT = Concat(sRESULT, FormatDate('c',nDate))

 // look again. If not found will return 0

 nDate = GetNextDateForHolidayId(nHolidayId,nYear)

endwhile

 

This macro function is used in conjunction with the function GetNextDateForHolidayId (see the help on that function for a detailed example of how these 2 functions work together).


Topic 110056 updated on 11-Apr-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?reset_getdateforholidayid.htm