Community of VE/MapPoint Users and Developers
This is a discussion on Convert to Add-In within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am at the start of converting my Routeworks application to a MP Add-In. Command buttons on the frmAddIn call ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Convert to Add-In Command buttons on the frmAddIn call a database functions form or a map functions form each of which have command buttons for all the things a route manager needs to do. The first button I've tried to code in, in Map Functions, shows some data about the dataset and routes in the map file. The following code compiles ok but gives me a variable not set error followed by an automation error. I've blocked out all the important code lines planning to reintroduce them 1 at a time untill I corrected the error. The error occurs as soon as the line set objMap is read. If I remove this line also, the see details form shows, but of course it's dead. Someone help? Thanks. Public Connect As Connect Public objApp As MapPoint.Application Private Sub cmdViewDetails_Click() Me.Hide Dim txtShowDataSetCount As String Dim intShowDataSetCount As Integer Dim objDatasets As MapPoint.DataSets Dim objDataset As MapPoint.DataSet Dim iInt As Integer Dim objMap As MapPoint.Map iInt = 1 Set objMap = objApp.ActiveMap ' Set objDatasets = objMap.DataSets 'intShowDataSetCount = objMap.DataSets.Count 'txtShowDataSetCount = "This map has " & CStr(intShowDataSetCount) & " datasets/routes." 'frmMapDetails.lblListDatasets.Caption = txtShowDataSetCount ' frmMapDetails.lstDatasetNames.Clear ' For Each objDataset In objDatasets ' frmMapDetails.lstDatasetNames.AddItem (objDatasets.Item(iInt).Name) ' iInt = iInt + 1 ' Next objDataset frmMapDetails.Show vbModal End Sub
__________________ David Kachuck dk0146@netscape.net Oracle Certified Professional Database Administrator (OCP) MS Access Certified Expert (MAUS) |
![]() |
| Tags |
| addin, convert |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| which is the transformation that MP use to convert.... | Anonymous | MapPoint 2006/2009 Discussion | 4 | 07-02-2008 02:57 PM |
| Convert Lat Lon to X Y | Dazzer | MapPoint 2006/2009 Discussion | 9 | 04-27-2006 11:09 AM |
| Convert .ptm to .jpg | dkirk | MapPoint 2006/2009 Discussion | 6 | 03-03-2005 07:10 AM |
| Help: convert VB code to Delphi! | Anonymous | MapPoint 2006/2009 Discussion | 3 | 10-06-2004 02:02 PM |
| Convert to Lat/Long | wallacech | MapPoint 2006/2009 Discussion | 1 | 02-26-2004 01:37 PM |