Top |
Post New Question |
Read All |
MP2K Asks Microsoft
548
Martin Stewart
-
December 18, 2001
I am using the evaluation version of Mappoint 2002 in a VB program. My program displays the european map with various pushpins pointing to street addresses. I am trying to use the Country property of the StreetAddress object to zoom the map to the country where a pushpin has been selected, but this property only returns an integer reference rather than the country name. Is there a way I can convert this to the country name without having to hold an internal cross-reference table in my application ?
Answer:
Look in the MapPoint Visual Basic Reference for "GeoCountry values" in the "Syntax and values" section. Every country has a programmatic value such as "geoCountryBulgaria" (value of 35), which are listed in that help topic.
- Walt Cygan
Post New Answer / Follow-up