Thank you.  It was the Options array that was causing me problems.

The only thing I'll note is that in your correction you have
  
   Dim Options as Object

and it needs to be
   
   Dim Options as Variant

--- In [email protected], "Stewart Berry" <[EMAIL PROTECTED]> wrote:
>
> Hi Group:
>  
> A few pointers:
>  
> The issues demonstrated in the sample code provided by the user are:
>  
> 1. Options array:
>  
> ''' =====================
> ''' ORIGINAL
> ''' =====================
> Dim Options(2) As Variant
> Options(0) = "Option Name"
> Options(1) = "Option Value"
>  
> ''' A GISDK 'options array' is a 2-D, 'SafeArray' constructed using
the Array() function
> ''' =====================
> ''' CORRECTION TO ORIGINAL
> ''' =====================
> Dim Options As Object
> Options = Array(Array("Option One", "Option One Value"),
Array("Option Two", "Option Value"))
>  
> 2. The backslash character ("\") does not have to be 'escaped' in
VB6 the way it does in a GISDK RSC file.
>  
> ''' =====================
> ''' Not Necessary
> ''' =====================
> Dim MyFileName As String
> MyFileName = "X:\\Directory_A\\Project_X\\File123.txt"
> Gisdk.Function("OpenFile", MyFileName, "r")
>  
> ''' =====================
> ''' Correct
> ''' =====================
> Dim MyFileName As String
> MyFileName = "X:\Directory_A\Project_X\File123.txt"
> Gisdk.Function("OpenFile", MyFileName, "r")
>  
> I hope this helps.
>  
> Stewart
>  
> Stewart J. Berry (BSc, MSc)
> GIS Specialist
> Caliper Corporation
> 



------------------------------------

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/

Reply via email to