ThemeInfo() 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 information about a specific thematic layer in a map. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

ThemeInfo ( map_window_id, thematic_layer_id, attribute )

map_window_id is a Map window identifier.

thematic_layer_id is a SmallInt that identifies a thematic layer in a Map.

attribute is a SmallInt code indicating the type of information to return; see table below.

Return Value

Depends on the attribute parameter.

Description

The attribute parameter can be any value from the table below.
attribute code ID ThemeInfo() returns
THEME_INFO_TYPE 1

SmallInt result, representing the theme type:

THEME_TYPE_RANGES (0)

THEME_TYPE_BARS (1)

THEME_TYPE_PIES (2)

THEME_TYPE_GRADUATED (3)

THEME_TYPE_DOTDENSITY (4)

THEME_TYPE_UNIQUE (5)

THEME_TYPE_GRID (6)

THEME_INFO_ITEM_COUNT 2 Integer result, representing the number of items in theme.
THEME_INFO_TABLE_ALIAS 3 String representing the table alias for table used to create the theme.
THEME_INFO_EXPRESSIONS_COUNT 4 Integer result representing the number of expressions or columns used in the theme.

See Also:

ThemeItemInfo() function

ThemeExpressionInfo() function