RemoteMapGenHandler procedure - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
ft:locale
en-US
Product name
MapBasic
ft:title
MapInfo MapBasic Reference
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:32:32.686000

Purpose

A reserved procedure name, called when an OLE Automation client calls the MapGenHandler Automation method.

Syntax

Declare Sub RemoteMapGenHandler 

Sub RemoteMapGenHandler 
	 statement_list 
End Sub 

statement_list is a list of MapBasic statements to execute when the OLE Automation client calls the MapGenHandler method.

Description

RemoteMapGenHandler is a special-purpose MapBasic procedure name, which is invoked through OLE Automation. If you are using OLE Automation to control MapInfo Pro, and you call the MapGenHandler method, MapInfo Pro calls the RemoteMapGenHandler procedures of any MapBasic applications that are running. The MapGenHandler method is part of the MapGen Automation model introduced in MapInfo Pro 4.1.

The MapGenHandler Automation method takes one argument: a string. Within the RemoteMapGenHandler procedure, you can retrieve the string argument by issuing the function call CommandInfo(CMD_INFO_MSG) and assigning the results to a string variable.

Example

For an example of using RemoteMapGenHandler, see the sample program MAPSRVR.MB.