Hi all,I am attempting to delete fields from a result table of the ZoneStatisticsAsTable tool.Here is the script in python:import arcgisscripting
gp = arcgisscripting.create(9.3)
table = "C:\GISDATA\resultTable"
fields = gp.ListFields(resultTable)
for field in fields:
if ((field.name != "BUILD_ID") and (field.name != "MAX")):
gp.deletefield(table, field)
I get:RuntimeError: Object: Error in executing tool.I tried running the deleteField tool on the same table in the command line in ArcMap and got an error saying the table does not exist or is not supported. I am able to manually delete fields on this table in ArcMap.At this point I am going to find another way to accomplish my goal. I am just curious as to why this isn't working.