MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Convert to Add-In

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-06-2003
Junior Member
Yellow Belt
 
Join Date: Jul 2002
Posts: 17
Send a message via AIM to David Kachuck
Convert to Add-In

I am at the start of converting my Routeworks application to a MP 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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
addin, convert


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 07:46 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54