Getting Output from Geoprocessing using Python 2.5.1 and Geoprocessor 9.3

Discussion created by katze01 on Apr 8, 2012
Latest reply on Apr 10, 2012 by fabl

right now I'm having trouble using the GetOutput command. I am using ArcGIS 9.3 and the 9.3 geoprocessor within Python 2.5.1.

First I define a variable fc with the path to a shapefile.

I am listing fields of an attribute table using fields = gp.ListFields(fc)

Then I write:

for field in fields:
print field.GetOutput(0)

But this always returns an error message such as "Attribute Error" or "GetOutput does not exist".