Run Application 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

Runs a MapBasic application or adds a MapInfo workspace. You can issue this statement from the MapBasic window in MapInfo Pro.

Syntax

Run Application [ NoMRU ] file [ Mode default | Current ] 

file is the name of an application file or a workspace file.

Mode default opens the new workspace but would not prompt to close or save the currently open workspaces.

Mode Currrent opens the new workspace and prompts to close or save the currently open workspaces.

If the statement includes the NoMRU clause, the application or workspace name would not be added to the Most recently Used list of files.

Description

The Run Application statement runs a MapBasic application or loads an MapInfo workspace. By issuing a Run Application statement, one MapBasic application can run another application. To do so, the file parameter must represent the name of a compiled application file. The Run Application statement cannot run an uncompiled application. To halt an application launched by the Run Application statement, use the Terminate Application statement.

Example

The following statement runs the MapBasic application, REPORT.MBX:

Run Application "C:\MAPBASIC\APP\REPORT.MBX"

The following statement loads the workspace, PARCELS.WOR:

Run Application "Parcels.wor" 

See Also:

Run Command statement, Run Menu Command statement, Run Program statement, Terminate Application statement