DataMap object

Anonymous
08-29-2002, 05:13 AM
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

Eamon
08-29-2002, 08:45 AM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mappoint/html/BIZAPIDataSet.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 ;)

Anonymous
08-30-2002, 05:04 AM
Query functions don't work with datasets created with the function getDemographics ! Do you know why ?

Hasan

 
Web mp2kmag.com
mapforums.com