How can i learn postal codes from a found location?

Anonymous
11-04-2002, 02:23 PM
Hi all,

i have some n locations that found after a findaddres method of map object. for every location object i can learn its street, city1, city2, region, country fields. but i can not learn postal code info althought there is postcode property of object.

is this a bug (i dont thik so) or something else?

is there any other way to learn postcode of a location?

if anybody can help, it would be super! because so, mp2002 will be solved every problems about data-map-geo-gis.

regards.

John Meyer
11-04-2002, 05:30 PM
Try this slightly modified sample from the help file:

Dim objApp As New MapPoint.Application
Dim objMap As MapPoint.Map
Dim objLoc As MapPoint.Location

'Set up the application
Set objMap = objApp.ActiveMap
objApp.Visible = True
objApp.UserControl = True

'Find an address
Set objLoc = objMap.FindAddressResults("1 Microsoft Way", "Redmond", "WA")(1)

'Show the Postal Code
MsgBox objLoc.StreetAddress.PostalCode

 
Web mp2kmag.com
mapforums.com