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 minicalendar (that is to say, the current macro token appears after the minicalendar marker token).

 

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

if b_InsideMinical        
    // get the month of the current minical
    nMinicalMonth = StrToInt(StrCopy(s_ParentMinicalToken, 52)) // 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 minicalendar token, you can use the s_ParentMinicalToken variable to determine the structure of the minicalendar 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