Share via


Street property

Returns the street name or street address of the specified StreetAddress object. Read-only String.

Applies to

Objects:  StreetAddress

Syntax

object.Street

Parameters

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

Example

    Sub FindStreetAddressFromString()

  Dim objApp As New MapPoint.Application   Dim objMap As MapPoint.Map   Dim strAddress As String   Dim objSA As MapPoint.StreetAddress
  'Set up the application   Set objMap = objApp.ActiveMap   objApp.Visible = True   objApp.UserControl = True
  'Set a string, then parse it   strAddress = "1 Microsoft Way, Redmond, WA"   Set objSA = objMap.ParseStreetAddress(strAddress)
  'Now search on this address and return first result   MsgBox "First found address: " + objMap.FindAddressResults(objSA.Street, _     objSA.City, , objSA.Region).Item(1).Name
  End Sub

Note  This sample code is specific for use in MapPoint North America; it is for illustration purposes only.