Purpose
Halts execution of a running or sleeping MapBasic application. You can issue this statement from the MapBasic window in MapInfo Pro.
Syntax
Terminate Application app_name
app_name is a string representing the name of the running application (for example, SCALEBAR.MBX).
Description
If a MapBasic program creates custom menu items or ButtonPad buttons, that MapBasic program can remain in memory, "sleeping," until the user exits MapInfo Pro. To force a sleeping application to halt, issue a Terminate Application statement. For example, if you need to halt an application for debugging purposes, you can issue the Terminate Application statement from the MapBasic window.
If your application launches another MapBasic application (using the Run Application statement), you can use the Terminate Application statement to halt the other MapBasic application.
See Also:
End Program statement, Run Application statement