Layout Smart Text supports a list of aliases which can be used in lieu of a MapBasic expression. The syntax for using an alias is:
${alias}
where alias is the alias name for a MapBasic expression.
For example, use the following text in a Layout Text Frame to display the current page and number of pages:
Page ${Page} of ${Pages}
If the text frame is on the second page of a Layout containing four pages, the text
will appear as Page 2 of 4
in the Layout.
Page \${Page} of \${Pages}
the text for the above frame
will appear as Page ${Page} of ${Pages}
in the Layout.If the alias used is not in the list of aliases, you will see a red error in the text frame and its help text will show additional error information. MapInfo Pro will search a user-modifiable list of aliases first but will fall back to a hard-coded list if the alias is not in the user list.
Click on the Text icon on the Layout Ribbon to display a list of all Layout Smart Text Aliases under the Smart Text group.