Purpose
This statement halts MapInfo Pro.
Syntax
End MapInfo [ Interactive ]
Description
The End MapInfo statement halts MapInfo Pro.
An application can define a special procedure called EndHandler, which is executed automatically when MapInfo Pro terminates. Accordingly, when an application issues an End MapInfo statement, MapInfo Pro automatically executes any sleeping EndHandler procedures before shutting down. See EndHandler procedure for more information.
If an application issues an End MapInfo statement, and one or more tables have unsaved edits, MapInfo Pro prompts the user to save or discard the table edits.
If you include the Interactive keyword, and if there are unsaved themes or labels, MapInfo Pro prompts the user to save or discard the unsaved work. However, if the user's system is set up so that it automatically saves MAPINFOW.WOR on exit, this prompt does not appear. If you omit the Interactive keyword, this prompt does not appear.
To halt a MapBasic application without exiting MapInfo Pro, use the End Program statement.
See Also: