Community of VE/MapPoint Users and Developers
This is a discussion on mappoint europe 2004 and visual basic 6.0 within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; what you mean is that when you click your "submit button" you go to mappoint2004 itself I only open another ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
|
next problem runtime error 429: ActiveX component can't create object i'm using this code: Dim omap As MapPoint.Map Set omap = GetObject(, "MapPoint.Application").ActiveMap Dim oPPSet As MapPoint.DataSet Dim oPin As MapPoint.Pushpin Dim oDS As MapPoint.DataSets Set oPin = omap.AddPushpin(omap.FindResults( _ txtKaart.Text)(1)) Set oDS = omap.DataSets Set oPPSet = omap.DataSets.AddPushpinSet("Deliveries") oPin.MoveTo oPPSet it higlights the "set omap..." sentence my mappoint control is ok, what's wrong?
__________________ greetz |
| |||
| How to pushpin an address from VB
On a VB form with three address entry lines "address_line1" etc., a MapPoint control named "MapPointControl1", and a button named "btnFind". Private Sub btnFind_Click() Dim objPin As Pushpin Dim objLoc As Location Dim place As String place = Me.address_line1.Text & ", " & Me.address_line2.Text & ", " & Me.address_line3.Text Set objLoc = Me.MappointControl1.ActiveMap.FindResults(place).I tem(1) If objLoc Is Nothing Then Msgbox "Nothing Found" Exit Sub End If Set objPin = Me.MappointControl1.ActiveMap.AddPushpin(objLoc, Me.address_line1.Text) objPin.Symbol = 78 '# red house objPin.note = place objPin.BalloonState = geoDisplayBalloon End Sub |
| |||
| Missing a line?
Have you initialised the MapPoint ActiveX on the form in the Form_Load event? Private Sub Form_Load() Me.MappointControl1.newMap geoMapEurope ' geoMapNorthAmerica End Sub Otherwise "ActiveMap" is Nothing (hence "object not set"). Try that and let me know if you're still stuck.
__________________ Regards Anthony Hunt ach@kl2.com Senior Technical Specialist Kappa Lambda Squared Limited www.kl2.com Erskine House, 53 London Road, Maidstone, Kent. ME16 8JH Tel: 01622 670095 Fax: 01622 200119 magnus frater spectat te |
| |||
| Quote:
|
![]() |
| Tags |
| 2004, basic, europe, mappoint, visual |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Query Mappoint Visual Basic 6.0 | virgilar | MapPoint 2006/2009 Discussion | 2 | 10-08-2005 08:54 AM |
| mappoint, visual c++ vs visual basic | Anonymous | MapPoint 2006/2009 Discussion | 6 | 03-30-2004 10:17 PM |
| Visual Basic. NET and MapPoint | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-30-2003 03:49 PM |
| Visual basic or visual c++ in mappoint | misterb83 | MapPoint 2006/2009 Discussion | 1 | 02-14-2003 09:31 AM |
| I am using MapPoint 2001 and Visual Basic(6.0). I.... | Anonymous | MapPoint 2006/2009 Discussion | 2 | 06-10-2002 09:33 AM |