Modifying Existing HotLink Definitions - 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

The following clause modifies hotlink definition on the map.For a detailed description of the Activate clause, see Managing Hotlinks.

Syntax

Set Map
	[ Window window_id ]
	[ Layer layer_id 
		[ Activate Modify MODIFY_CLAUSES ] ]

Where MODIFY_CLAUSES is:

hotlink_id  { 
		[ Using launch_expr ] 
		[ On  {  Labels |  Objects | Labels Objects } ]  
		[ Relative Path { On | Off } ] [ Enable { On | Off }] 
		[ Alias expression ] } 
	[ , MODIFYCLAUSE ]

window_id is the integer window identifier of a Map window.

layer_id identifies which layer to modify; can be a SmallInt (for example, use 1 to specify the top map layer other than Cosmetic) or a string representing the name of a table displayed in the map.

hotlink_id is an integer index (1-based) that specifies the hotlink definition to modify. At least one hotlink_id must be specified.

launch_expr must not be an empty string (for example, "").

expression the placeholder of the actual file name expression being set (any URL or filename).

Description

Enable clause has two options On and Off. When set to On, it enables the hotlink definition and when set to Off, it disables the hotlink definition.

Examples

Set Map Layer 1 Activate Modify 1 Using URL1 On Objects Alias URL, 2 
Relative Path Off
Set Map Layer 1 Activate Modify 2 On Objects, 4 On Labels
Set Map Layer 1 Activate Modify 3 Relative Path On Enable Off
Set Map Layer 1 Activate Modify 2 Enable Off, 3 Enable On