HowCreated property

Returns the method by which the data set was created. Read-only GeoDataSetHowCreated.

GeoDataSetHowCreated Value Description
geoDataSetDemographic
5
MapPoint demographic data
geoDataSetImport
2
Imported data
geoDataSetLink
3
Linked data
geoDataSetManual
1
Manually created Pushpin set

Applies to

Objects:  DataSet

Syntax

object.HowCreated

Parameters

Part Description
object Required. An expression that returns a DataSet object.

Remarks

To tell whether the imported, linked, or manually created data set is a territory, use the DataMapType property of the DataSet object.

Example

  
    Sub GetInfoAboutDataSet()
    Dim objApp As New MapPoint.Application
    Dim objDataMap As MapPoint.DataMap
    Dim objDataSet As MapPoint.DataSet

    'Set up application and objects to use
    objApp.Visible = True
    objApp.UserControl = True

    'Let user create a data map
    Set objDataMap = _
        objApp.ActiveMap.DataSets.ShowDataMappingWizard()
    Set objDataSet = objDataMap.Parent

    'Find out the type of data set just created
    Select Case objDataSet.HowCreated
        Case geoDataSetDemographic
            MsgBox "Data set was created based " & _
                "on MapPoint demographics."
        Case geoDataSetImport
            MsgBox "Data set was created based " & _
                "on imported data."
        Case geoDataSetLink
            MsgBox "Data set was created based " & _
                "on linked data."
        Case geoDataSetManual
            'should never be created by ShowDataMappingWizard
            MsgBox "Error"
    End Select
End Sub