s_ParentMinicalToken

Navigation:  Appendices > Macro Language > System Variables >

s_ParentMinicalToken

Previous pageReturn to chapter overviewNext page

This system variable gives you the text of the Minical Token inside of which the current Macro token is.

 

To determine if the current token is inside a minicalendar, use the b_InsideMinical system variable.

The value of the minical marker token will not include a LanguageTag, since it is irrelevant for the marker token.

 

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

 

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

 

   

 

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

 

var

   nMinicalMonth

begin          

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

end

 

See also : b_InsideMinical, n_ParentMinicalDate.


Topic 171880 updated on 01-Nov-2016.
Topic URL: http://www.qppstudio.net/webhelp/index.html?s_parentminicaltoken.htm