Saving a .WOR that Can Be Opened in Localized/Unlocalized Versions - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Before MapInfo Pro/MapBasic version 9.0.2, if you created a workspace file containing a layout and then sent it to another MapInfo Pro user working in a different locale, the workspace would error when the user tried to open it. This occurred because the map name would change due to the change in language.

We have created a registry entry workaround to prevent this error and allow users in different locales to open the workspaces without error. You must enter this registry entry manually.

To prevent map name errors due to the change in locale:

  1. From the command line, type regedit.
  2. In the Registry Editor window, go to My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Mapinfo\Mapinfo\Common.
  3. Right-click and select New > DWORD value to create a new DWORD registry entry.
  4. Rename the entry WriteWindowTitle and press Enter.
    The Edit DWORD value dialog box displays.
  5. Type 1 in the Value data field and click OK to save your entry.
  6. Close MapInfo Pro and reopen it.

This corrects the problem by writing the name of the table explicitly in the Layout. This prevents the name change when the file changes locales.