Share via


Value property (StreetAddress)

Returns the full address from a StreetAddress object. Read-only String.

Applies to

Objects:  StreetAddress

Syntax

object.Value

Parameters

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

Remarks

The Value property is the default property for the StreetAddress object.

Example

    Sub GetOriginalAddressString()

  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)
  'Make sure the original input value is what you expect   MsgBox "Original address string: " + objSA.Value
  End Sub

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