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 3 of 3

DataMap object

This is a discussion on DataMap object within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello, This is my vb code. Dim oMap As MapPoint.Map Dim oDataset As MapPoint.DataSet Dim oDataMap As MapPoint.DataMap Dim oField ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    DataMap object

    Hello,

    This is my vb code.

    Dim oMap As MapPoint.Map
    Dim oDataset As MapPoint.DataSet
    Dim oDataMap As MapPoint.DataMap
    Dim oField As MapPoint.Field
    Set oField = oDataset.Fields(2)
    Set oDataset = MappointControl1.ActiveMap.DataSets.GetDemographic s(geoCountryFrance)
    Set oDataMap = oDataset.DisplayDataMap(geoDataMapTypeSizedCircle, oField, geoShowByPostal1)

    My DataMap object has 5290 records which are displayed on the map.
    Do you know if it is possible to enumerate the records of a datamap object in a vb code ?

    Hasan

  2. #2
    Eamon is offline Junior Member Yellow Belt
    Join Date
    Aug 2002
    Posts
    15
    http://msdn.microsoft.com/library/de...APIDataSet.asp

    look at the query functions. They allow you to enumerate through the features in a single dataset. They all return a mappoint recordset object. If you have an ado refrence added to your project remember to make your declares like

    mappoint.recordset

    instead of

    recordset

    it will stop alot of headaches. Have fun ;)

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Queries on Demographic dataset

    Query functions don't work with datasets created with the function getDemographics ! Do you know why ?

    Hasan

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Getting shapes from DataMap
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-16-2005, 06:36 PM
  2. c# zoom to object
    By starbuck in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 12-17-2004, 04:32 PM
  3. route object to drawing object
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-09-2003, 10:29 PM
  4. Can one say me how to change color of DataMap to white!!
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 04-09-2003, 10:15 AM
  5. how to skip wrong pushpinsymbol and map style, using datamap
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 09-11-2002, 07:18 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