TableListSelectionInfo() 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 selected item in the Table List window.

Syntax

TableListSelectionInfo( selection_index, attribute )

selection_id is the index of a selected item in Table List.

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

Description

The attribute parameter can be any value from the table below. Codes in the left column are defined in MAPBASIC.DEF.

attribute code ID TableInfo() returns
TL_SEL_INFO_NAME 1 String result, representing the name of the selected.
TL_SEL_INFO_ID 2 Smallint value, indicating the id of the table associated with the selected item. This value can be used in calls to TableInfo().

Example

TableListSelectionInfo(index, TL_SEL_INFO_ID)

See Also:

TableListInfo() function