LabelFindNext() 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

Advances the internal label pointer, so that you can query the next label in a map layer. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

LabelFindNext( map_window_id, layer_number )

map_window_id is an integer window id, identifying a Map window.

layer_number is the number of a layer in the current Map window (for example, 1 for the top layer).

Return Value

Logical value: TRUE means the label pointer was advanced to the next label; FALSE means there are no more labels for this layer.

Description

After you call the LabelFindFirst() function to begin querying labels, you can call LabelFindNext() to advance to the next label in the same layer.