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.