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/