Community of VE/MapPoint Users and Developers
This is a discussion on Reading Territories name Programmatically using VB within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi , I have map open using activex control. Map has some Territories name created manually( no linking or import). ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Reading Territories name Programmatically using VB I have map open using activex control. Map has some Territories name created manually( no linking or import). I would like to retreived the Territories name as string. This is possible if you import Map from excel file and i can read all records Set mpDataSet = .ImportTerritories(szconn, , geoCountryUnitedStates, , geoImportExcelA1) Set objRecordset = mpDataSet.QueryAllRecords This way i can navigate to all record and get the Territories names. BUT i don't see any object in MapPoint 2002 which allows me to read the same info from manually created Territories . Any idea please. Thanx in advance. |
| |||
| Re:Reading Territories name Programmatically using VB
I guest MapPoint does not provide enough of information on Territories. Does any body know more about object required to read the Territories content of .ptm file |
| |||
| Reading Territory info using VB control With objMap.DataSets szconn = objMap.Path & "C:\MapPoint\pushpin\Terrs.xls!Sheet1!A1:E127" Set mpDataSet = .ImportTerritories(szconn, , geoCountryUnitedStates, , geoImportExcelA1) End With Dim objRecordset As Recordset Set objRecordset = mpDataSet.QueryAllRecords Dim strLookUp As String ReDim Preserve strRegion(0) x = 0 'Get the values Dim vals As String objRecordset.MoveFirst Dim i As Integer Do Until objRecordset.EOF strLookUp = Trim(objRecordset.fields("Territory")) ReDim Preserve strRegion(x) strRegion(x) = strLookUp // I have the list here... x = x + 1 End If objRecordset.MoveNext Loop |
![]() |
| Tags |
| programmatically, reading, territories |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading Data Stream DataRadio and MapPoint | LDH | MapPoint 2006/2009 Discussion | 2 | 01-19-2006 03:20 PM |
| Creating Territories programmatically | Atul22 | MapPoint 2006/2009 Discussion | 3 | 10-05-2004 11:15 AM |
| Programmatically creating Territories? | jlaretto | MapPoint 2006/2009 Discussion | 1 | 01-29-2004 03:01 AM |
| reading each pinpoint with a selected area of the map | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-18-2003 06:28 PM |
| Showing ZIP code divisions for territories programmatically | Fer | MapPoint 2006/2009 Discussion | 1 | 09-10-2003 07:51 PM |