Thread: Import method
View Single Post

  #1 (permalink)  
Old 01-30-2003
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Import method

Hello,

I have a question about the import method. How does it work ?
This is my VB code.

dim oMap as Mappoint.map
dim oDataset as Mappoint.dataset
dim myQuery as string
myQuery = ....

set ds = oMap.import(myQuery, Importflags:=geoImportAccessQuery)

This line works well. The data are imported but the records are showned by geoShowDataCountry.

In my query, I have columns for city and country. But the import method does not use the city one.

I try to use an array.

Dim myExampleArray(2, 2)

myExampleArray(1, 1) = "City"
myExampleArray(1, 2) = geoFieldCity

myExampleArray(2, 1) = "Country"
myExampleArray(2, 2) = geoFieldCountry

set ds = oMap.import(myQuery,Array0fFields:= myExampleArray, Importflags:=geoImportAccessQuery)

This line does not work. An error occurs : incorrect parameter. Why ?

Thx for you help

Hasan
Reply With Quote