COMObject unknown

    Table of contents
    You are currently comparing two old versions - only when you are comparing against the latest version can you revert. Return to version archive.

    Combined revision comparison

    Comparing version 16:00, 18 Jan 2011 by matt with version 16:27, 18 Jan 2011 by matt.

    ...

    Case A

    import arcgisscripting
    gp = arcgisscripting.create(9.3)
    
    #List workspaces in D:\GIS
    gp.Workspace = "D:\GIS"
    wss = gp.ListWorkspaces("*","All")
    ws = wss.Next()
    while ws:
        print ws
        ws = wss.Next()

    ...

    If I'm using the ArcGIS python the result is:

    Traceback (most recent call last):
       File "xxx.py", line 10, in <module>
        ws = wss.Next()
    AttributeError: 'list' object has no attribute 'Next'

    Version from 16:00, 18 Jan 2011

    This revision modified by matt (Ban)

    ...

    Version as of 16:27, 18 Jan 2011

    This revision modified by matt (Ban)

    ...

    Case A

    import arcgisscripting
    gp = arcgisscripting.create(9.3)
    
    #List workspaces in D:\GIS
    gp.Workspace = "D:\GIS"
    wss = gp.ListWorkspaces("*","All")
    ws = wss.Next()
    while ws:
        print ws
        ws = wss.Next()

    ...

    If I'm using the ArcGIS python the result is:

    Traceback (most recent call last):
       File "xxx.py", line 10, in <module>
        ws = wss.Next()
    AttributeError: 'list' object has no attribute 'Next'

        Send feedback