Set Target 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

Sets or clears the map editing target object(s). You can issue this statement from the MapBasic window in MapInfo Pro.

Syntax

Set Target { On | Off }

Description

Use the Set Target statement to set or clear the editing target object(s); this corresponds to choosing MapInfo Pro's Set Target and Clear Target commands on the SPATIAL tab. Some of MapInfo Pro's advanced editing operations require that an editing target be designated; for example, you must designate an editing target before calling the Objects Split statement. For an introduction to using the editing target, see the MapInfo Pro documentation.

Using the Set Target On statement corresponds to choosing the Set Target command. The current set of selected objects becomes the editing target (or an error is generated if no objects are selected).

Using the Set Target Off statement corresponds to choosing the Clear Target command.

See Also:

Objects Combine statement, Objects Erase statement, Objects Intersect statement, Objects Overlay statement, Objects Split statement, Set Combine Version statement