OtherCity property

Returns the second city of the specified StreetAddress object. Second city is only used in addresses in the United Kingdom. Read-only String.

Applies to

Objects:  StreetAddress

Syntax

object.OtherCity

Parameters

Part Description
object Required. An expression that returns a StreetAddress object.

Example

    Sub ReturnOtherCity()

  Dim objApp As MapPoint.Application   Dim objMap As MapPoint.Map   Dim strAddress As String   Dim objSA As MapPoint.StreetAddress
  'Set up the application (MapPoint Europe)   Set objApp = CreateObject("mappoint.application.eu")   Set objMap = objApp.ActiveMap   objApp.Visible = True   objApp.UserControl = True
  'Set a string, then parse it   strAddress = "Mareham Lane, Threekingham, Sleaford NG340, UK"   Set objSA = objMap.ParseStreetAddress(strAddress)
  'Return the other city of the parsed address   MsgBox "Other City: " + objSA.OtherCity
  End Sub

Note  This sample code contains data that is specific for use in MapPoint Europe.