Share via


MethodName syntax

The following information describes the syntax required for the user-defined method called by the parameter MethodName from the CallMatchMethod method. This method is called to match records to the map when MapPoint finds more than one possible match.

The method must be callable from a COM object (on a form or in a class) and use the following syntax. The result is a value that is a 1-based index into the FindResults collection. If the method returns –1, MapPoint will not match the record. Read-only Long.

Applies to

Methods:  CallMatchMethod

Syntax

MethodObject.MethodName(Name, Results)

Parameters

Part Description
MethodObject Required. An expression that returns a COM object.
Name Required String. Geographic name of the record being matched.
Results Required FindResults collection. Collection that contains the list of possible results.