Set Workspace Warning statement - 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

Purpose

Turns the save workspace message prompt on or off, that appears when attempting to close the MapInfo Pro. You can issue this statement from the MapBasic window in MapInfo Pro.

Syntax

Set Workspace Warning { On [ Auto | Named ] | Off }

Description

If Auto is added with On keyword, MapInfo Pro will prompt to save when you close all tables or exit the application, in the following scenarios:

  • If you have a workspace open with unsaved edits in it.
  • If you have only tables open, not workspace, with unsaved edits in it. In this case, workspace is referred to as untitled.wor.
  • If you have multiple workspaces open with unsaved edits in it. In this case, workspace is referred to as untitled.wor.

If Named is added with On keyword, MapInfo Pro will prompt to save when you close all tables or exit the application, only if you have a workspace open with unsaved edits in it.

The default behavior of MapInfo Pro is same as having Auto added with the On keyword. The Set Workspace Warning statement can be used to change this default behavior.

If the statement is executed with Off keyword, MapInfo Pro will not prompt to save workspace on closure of the session.

The change implemented by running the Set Workspace Warning statement remains valid only for the running MapInfo Pro session.