Please enable JavaScript to view this site.

 

the tokens to the right of [3mc-01] are inside the minicalendar

the tokens to the right of [3mc-01] are inside the minicalendar

This system variable tells you if the current macro token is inside a mini-calendar (that is to say, the current macro token appears after the mini-calendar marker token).

 

This is important because the date of all tokens inside a mini-calendar token is moved to the beginning of the mini-calendar month, but sometimes we may wish to apply formatting to some tokens inside the mini-calendar based on the mini-calendar marker token.

if b_InsideMinical        
    // get the month of the current minical
    nMinicalMonth = StrToInt(StrCopy(s_ParentMinicalToken, 5, 2)) // get the XX 
    // do something if that is the same month as the month of the token
    bRESULT = (MonthOf(n_ParentMinicalDate) == nMinicalMonth)  
    // send the root of the token for normal processing
    sRESULT = '[' + IntToStr(n_TokenDayValue) + s_TokenRoot + ']' 
endif

In those cases, once you have verified that you are inside a mini-calendar token, you can use the s_ParentMinicalToken variable to determine the structure of the mini-calendar in which the current macro token is.

 

See also: n_ParentMinicalDate, s_ParentMinicalToken, n_ParentMinicalDayValue, b_ParentMinicalIsCurrent, n_ParentMinicalWeekStart.

 


Topic 171870, last updated on 08-Apr-2021