Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

Where are my Push Pins! Help!

This is a discussion on Where are my Push Pins! Help! within the MapPoint Desktop Discussion forums, part of the Map Forums category; After struggling to find how to programmatically control mappoint in VB6 I at last managed to set up a data ...

  1. #1
    flymoe is offline Junior Member White Belt
    Join Date
    Oct 2004
    Posts
    3

    Where are my Push Pins! Help!

    After struggling to find how to programmatically control mappoint in VB6 I at last managed to set up a data link that I can refresh from code e.g. Timer etc.

    All seems to work exactly as I need it but, it links the data and displays the map but does not display the push pins! If I run the Wizard to link the data the push pins are shown. However, although my code lets me show the map and update the link and import the push pin set perfectly, it does not display the push pins on the map.

    As I am very new to this I expect as usual I am missing the point somewhere. What am I doing wrong? Any help on this one would be gratefully received. Things are now getting very frustrating!

    Enclosed a sample of the code I used.

    Flymoe

    Public objApp As New MapPoint.Application
    Public szconn As String
    Public oDS As MapPoint.DataSet
    Public objPin As MapPoint.Pushpin
    Public objField As MapPoint.Field

    Sub MyMap()


    objApp.Visible = True
    objApp.UserControl = True

    With objApp.OpenMap("C:\testmap.ptm", True).DataSets
    szconn = "C:\maps\tables.mdb!areas2"
    Set oDS = .LinkData(szconn, "Position", , geoCountryUnitedKingdom, , geoImportAccessTable)
    oDS.DisplayPushpinMap
    oDS.Symbol = 1

    End With

    End Sub

  2. #2
    flymoe is offline Junior Member White Belt
    Join Date
    Oct 2004
    Posts
    3

    All Sorted!

    Works fine now! All sorted now I have included the ArrayOfFields parameter

    Flymoe

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Push Pins
    By 02bsurfn in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 02-08-2005, 07:21 AM
  2. PUSH PINS
    By a_cajun_2 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-07-2005, 08:05 PM
  3. Push Pins
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 04-14-2004, 07:16 AM
  4. Push Pins
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-09-2004, 01:35 PM
  5. Push Pins
    By Ravi1 in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 10-21-2003, 07:03 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96