Aliases - MapInfo_Pro - 2023

MapInfo Pro Help

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapInfo Pro
Version
2023
Language
English
Product name
MapInfo Pro
Title
MapInfo Pro Help
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:39:16.995549

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.

As with regular Smart Text, you can force an alias to be interpreted literally using the escape character backslash ("\"). Using the example above:
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.