This is the root of the macro token, once the LanguageTag, the DayValue, the "*" and the Macro sequence ID have been stripped.
For example in the following Macro token,
The value of s_TokenRoot would be 'ShadeHol'.
s_TokenRoot is useful if you wish to apply the same macro actions to different tokens.
Suppose you wanted to shade the day and weekday of any date which contained a holiday. The GridTemplate would contain the tokens [1*1d], [1*1Dddd] and [1*1Mmmm], for example. This is almost the same as the tokens one would use if there were no macros (and indeed this shows how easily an existing grid can be "fitted" with Macros).
Using the following code :
bResult = IsHolidayForList('a', n_TokenDate)
sResult = '[' + s_LangDayToken + ']'
and replacing the text by sRESULT when bRESULT is true or false, you see that the macro token will be replaced by a different "normal" token depending on the value of s_TokenRoot.
Topic 105120, last updated on 18-Apr-2020