Anonymous
01-30-2003, 11:49 AM
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
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