I have code that says:
fld = fieldName
rows = arcpy.SearchCursor(fc)
for row in rows:
x = row.fld
How do I use a variable for my field name in Python ArcGIS 10 on Windows?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityrow.getValue(field_name)
See Accessing data using cursors in the help.