Share via


Pushpin property

Returns a Pushpin object for a record. Returns an error for Recordset objects with a MatchingMethod property of geoByTerritory. Read-only.

Applies to

Objects: Recordset

Syntax

object.Pushpin

Parameters

Part

Description

object

Required. An expression that returns a Recordset object.

Example

Sub GoToPushpin()

  Dim objApp As New MapPoint.Application
  Dim objRS As MapPoint.Recordset
  objApp.Visible = True
  objApp.UserControl = True

  'Open an existing data set
  Set objRS = objApp.OpenMap(objApp.Path & "\Samples\Clients.ptm").DataSets("Clients").QueryAllRecords

  'Access the first Pushpin
  MsgBox objRS.Pushpin.Name
  objRS.Pushpin.Location.GoTo

End Sub