Please enable JavaScript to view this site.

 

This system variable provides the date of the mini-calendar token inside of which the current macro token is.

 

➢To determine if the current token is inside a mini-calendar, use the b_InsideMinical system variable.

 

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

 

For example, the macro is used to make the month in the header of a mini-calendar bold if the mini-calendar corresponds to the current month.

 

   

 

Using the n_ParentMinicalDate and s_ParentMinicalToken we can see what the original date of the mini-calendar marker token was, and the month represented by the mini-calendar.

// 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 + ']' 

See also: b_InsideMinical, s_ParentMinicalToken.

 


Topic 171890, last updated on 18-Apr-2020