I have problems using ImportData. Somehow the call of ImportData fails
Please help!
Dim oMP, oDSSMP, oDSMP
Set oMP = GetObject(, "MapPoint.Application")
Set oDSSMP = oMP.ActiveMap.DataSets
' geoFieldName = 1
' geoFieldName2 = 2
' geoFieldAddress1 = 3
' geoFieldCity = 6
' geoFieldPostal1 = 11
' geoFieldCountry = 15
' geoFieldInformation 22
' geoFieldData 23
Dim myExampleArray(3, 2)
myExampleArray(1, 1) = "Name"
myExampleArray(1, 2) = 1 'geoFieldName
myExampleArray(2, 1) = "Vorname"
myExampleArray(2, 2) = 2 'geoFieldName2
myExampleArray(3, 1) = "Land"
myExampleArray(3, 2) = 15 'geoFieldCountry
Set oDSMP = oDSSMP.ImportData("C:\Temp\export.txt", myExampleArray, , 9)