Tokens With Multiple Macro Indices

Navigation:  Tokens > Macro Tokens >

Tokens With Multiple Macro Indices

Previous pageReturn to chapter overviewNext page

You can apply more than one macro to a given token.

For example, the token:

 

 [1*1*2*3d]

 

is the token [1d] to which are applied the macros *1 then *2 then *3.

 

Some important remarks:

 

The macros indices are processed from left to right. In the above example, first the *1 macro would be processed, then the *2, and finally, the *3 macro.

For the next macro in the chain to be processed, the current macro must set as its string result the original token minus the current macro index. This is usually done by a line of code such as the one below, at the end of the macro.
sRESULT = '[' + s_LangDayToken + ']'

In addition to the previous point, for the next macro in the chain to be processed, the resulting actions for the current macro must be set to Replace token with sResult.

 

See also: Different Tokens Sharing a Macro.


Topic 178595 updated on 21-Sep-2011.
Topic URL: http://www.qppstudio.net/webhelp/index.html?multiple_macro_indices.htm