I've had a lot of replies suggesting different things. These are the
results:
When I change
while Townshps !="": to
while Townshp is not None:
and when I change
while Townshps !="": to
for Townshp in iter(gp.ListFeatureClasses().next, None):
They both work perfectly, and it solved my problem.
Hi.
I'm extremely new to Python and programming as a whole. I have written
a python script with the assistance of ESRI ArcGIS 9.2, which uses
Python 2.4.1, however, it gives me this error when I try to run it.
I've already posted at ESRI support, and I was hoping that Python
people could help me