FrontWindow() function - 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

Returns the integer identifier of the active window. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

FrontWindow()

Return Value

Integer

Description

The FrontWindow() function returns the integer ID of the foremost document window (Map, Browser, Layout, Graph). Note that immediately following a statement which creates a new window (for example, Map, Browser, Layout, Graph), the new window is the foremost window.

Example

Dim map_win_id As Integer
Open Table "states"
Map From states
map_win_id = FrontWindow()

See Also:

NumWindows() function, WindowID() function, WindowInfo() function