It sounds like a projection error. You may need to define the projection type in array_options.
Look at your input CSV file: is there any coordinate conversion that need to be made? (floats, integers, strings)? Try running ImportCSV with the same parameteres directly from the Inmediagte Execution dialog box. If it works fine then you may suspect a problem on youtr array_options Good luck Armando --- In [email protected], "moorantle" <[EMAIL PROTECTED]> wrote: > > I am trying to use the Maptitude COM object in Visual Basic 6. I > followed the example, which runs fine, but can not figure out how to > successfully call the function I need. All I am trying to do at this > point is convert a CSV file to a DBD file. > > Public Sub GeoFileToDBD(geofilename as String) > > Dim gisdk As Object > Dim newfilename As String > Dim array_options(2) As Variant > > array_options(0) = "Layer_Name" > array_options(1) = Left(geofilename, Len(geofilename) - 3) > geofilename = Replace(geofilename, "\", "\\") > newfilename = Left(geofilename, Len(geofilename) - 3) & "dbd" > Set gisdk = CreateObject("Maptitude.AutomationServer") > Call gisdk.Function("ImportCSV", geofilename, newfilename, "Line", > array_options) > > End Sub > > I get and error on the last line. Runtime error type '6', Overflow. > Can someone please help? > ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Maptitude/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/Maptitude/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
