Message: Invalid window identifier - 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

Issue: Calling set map redraw off in MapBasic when all open tables are minimized (when none are open in a Map window) causes an error message: "Invalid window identifier."

The following example of this opens a table named WORLD.tab, and then minimizes the open table (using Map from with the min clause).

Open Table "C:\Introductory Data\World\WORLD.tab" interactive 
Map from WORLD.tab min 
Set map redraw off

Fix: This is a known issue and there is no workaround. You must have a Map window open to use set map redraw off.