Community of VE/MapPoint Users and Developers
This is a discussion on using ImportData with VBScript within the Development forums, part of the MapPoint 2006/2009 Discussion category; I have problems using ImportData. Somehow the call of ImportData fails Please help! Dim oMP, oDSSMP, oDSMP Set oMP = ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 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) |
| |||
| Re: using ImportData with VBScript
Hi, What exacly fails, what is the error, is there an exception raised ?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: using ImportData with VBScript
The Code is: 800A0FC6 "Data could not be imported, columns not found" (translated from german message) Set oDSMP = oDSSMP.ImportData(sMyFile, myExampleArray, 39070, 9, 1) Last Parameter means geoImportFirstRowNotHeadings |
| ||||
| Re: using ImportData with VBScript
But the first row consists of column headings, doesn't it? (and if it doesn't, how are you telling it what each column is?) Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| |||
| Re: using ImportData with VBScript Quote:
Regards Pit |
| |||
| Re: using ImportData with VBScript
Dim myExampleArray(6, 1) myExampleArray(1, 1) = 1 'geoFieldName myExampleArray(2, 1) = 2 'geoFieldName2 myExampleArray(3, 1) = 15 'geoFieldCountry myExampleArray(4, 1) = 6 'geoFieldCity myExampleArray(5, 1) = 3 'geoFieldAddress1 myExampleArray(6, 1) = 11 'geoFieldPostal1 Set oDSMP = oDSSMP.ImportData(sMyFile, myExampleArray, 39070, 9, 1) |
![]() |
| Tags |
| importdata, vbscript |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ImportData | lacja | MapPoint 2006/2009 Discussion | 6 | 11-19-2006 09:57 AM |
| MapPoint 2002 with ASP (vbscript) | eatech | MapPoint 2006/2009 Discussion | 6 | 05-05-2005 04:12 AM |
| ImportData | Anonymous | MapPoint 2006/2009 Discussion | 0 | 11-04-2004 03:05 AM |
| Will Pay $$$ for Assistance - ASP / VBSCRIPT | webdbx | MapPoint 2006/2009 Discussion | 1 | 07-09-2004 08:31 PM |
| Clientside VBScript and MapPoint? | Anonymous | MapPoint 2006/2009 Discussion | 4 | 03-14-2004 05:34 PM |
Ski Resort
Pick a destination. Pick a ski resort. Pick up your skis. Pick up your poles. Holiday Hypermarket makes it simple and fast to find a ski resort for you.
Portugal Weather
Check out Portugal Weather - Travel Counsellors details information on Portugal including, weather, flights and accommodation.
Jamaica Holiday
Fancy a Jamaica Holiday? Then visit dealchecker.co.uk and find out what the big deal is. Book a bargain when you book online.
Holidays in Dubai
Holidays in Dubai are an eclectic mix of the ancient and the modern. Discover an oasis of luxury amid the Arabian desert. Book here now!
Tunisia
Tunisia enjoys excellent weather, golden beaches and a beautiful blue sea. Moving away from the beach you will find a country that has a rich and varied past. Discover the secrets of history yourself by exploring all the ruins.
Travel Deals
Click here and read up on the travel deals available online.
Portugal Holidays
We specialise in Portugal holidays. Visit our On The Beach website for more information.