Handling Legitimate Spaces - 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.995000

There are cases where you want to indicate a substitution in which the searched for string contains spaces. You can use double quotes in such cases. Place a double quote:

  • at the beginning of the line

    and

  • between the searched for string and the substitution

    and

  • at the end of the line

For example, you might want to substitute "STHWY" for "State Highway". To do that, use the following line:

"State Highway"STHWY"

This provides a solution to a subtle problem, that of street names which match items in the abbreviation file. For example, "North St" and "Park Av" both have initial strings which match terms in the abbreviation file. Consequently, MapInfo Pro will substitute "N" for "North" to yield "N St" and "Pk" for "Park" to yield "Pk Av." You could add the following lines to the Abbreviation file to rectify these substitutions:

"N ST"North ST"
"PK AV"PARK AV"

Note that these lines have to come after the entries which substitute "N" for "North" and "PK" for "Park". If they came before, they would have no effect. Thus:

...
...
NORTH		N
...
...
PARK		PK
...
...
"N ST"NORTH ST"
"PK AV"PARK AV"
...
...

When MapInfo Pro encounters NORTH N it will turn NORTH ST into N ST. When it encounters "N ST"NORTH ST" it will then turn N ST into NORTH ST. PARK AV is treated similarly.