qet

Update Cursor unknown Field Name

Discussion created by qet on May 30, 2012
Latest reply on May 31, 2012 by qet
Hallo Everybody

Im stucked with a seemingly simple problem for a while now:

While iterating through an UpdateCursor, i want to change the Values of certain fields without knowing their exact name(Fieldnames) (for example, they differ by a number in their name).
(More detailed, i have the names of the fields in want to iterate through in a string list)


So im trying something like:

string = "*in*"

cur = arcpy.UpdateCursor(x)            
for zeile in cur:
    if(zeile.string == "tint):
        print "do something"



It always says: ERROR 000000_ Error executing function.

i tried it also with getValue() and other ways i could think of, but unfortunately it didnt work...

But be very thankfull for help!!

Greetings
thom

Outcomes