Country property (StreetAddress)

Returns the country of the specified StreetAddress object. See the GeoCountry values topic for values and their description. Read-only GeoCountry.

Applies to

Objects:  StreetAddress

Syntax

object.Country

Parameters

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

Example

    Sub FindCountryOfParsedAddress()

  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, USA"   Set objSA = objMap.ParseStreetAddress(strAddress)
  'Find the country of the parsed address   MsgBox "Country: " + CStr(objSA.Country)
  End Sub

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