I got it to work. It wasn't the code (as you stated), but my personal geodatabase had reached its size limits and the tool wouldn't function because, I assume, by adding those text strings to my feature classes it pushed the whole gdb over the 2GB limit. I placed into a file gdb and we're good to go. I modified the script to function as a script tool. I am sure there is a more efficient way to write this script (lists, tuples, etc). If anyone has suggestions, great...if not, it works fine. My scripting is getting better, but is very basic at this point.Also, does anyone know how I credit someone with successfully assisting me (like in the old Forum) so they get their points, etc?import sys, string, os, arcgisscripting
gp = arcgisscripting.create(9.3)
gp.OverWriteOutput = 1
FC = gp.GetParameterAsText(0)
LEV2 = sys.argv[2]
LEV1 = sys.argv[3]
UpdateField = sys.argv[4]
cur = gp.UpdateCursor(FC)
row = cur.Next()
#A = [11,12,13,14,17,18,19]
#B = [15,16]
#C = [21,22,23,24,25,26,27,28,29]
while row:
if row.GetValue(LEV2) == 11:
row.SetValue(UpdateField,"Urban & Built-Up")
elif row.GetValue(LEV2) == 12:
row.SetValue(UpdateField,"Urban & Built-Up")
elif row.GetValue(LEV2) == 13:
row.SetValue(UpdateField,"Urban & Built-Up")
elif row.GetValue(LEV2) == 14:
row.SetValue(UpdateField,"Urban & Built-Up")
elif row.GetValue(LEV2) == 17:
row.SetValue(UpdateField,"Urban & Built-Up")
elif row.GetValue(LEV2) == 18:
row.SetValue(UpdateField,"Urban & Built-Up")
elif row.GetValue(LEV2) == 19:
row.SetValue(UpdateField,"Urban & Built-Up")
elif row.GetValue(LEV2) == 15:
row.SetValue(UpdateField,"Industrial & Mining")
elif row.GetValue(LEV2) == 16:
row.SetValue(UpdateField,"Industrial & Mining")
elif row.GetValue(LEV1) == 2:
row.SetValue(UpdateField,"Agriculture")
elif row.GetValue(LEV1) == 3:
row.SetValue(UpdateField,"Rangeland")
elif row.GetValue(LEV1) == 4:
row.SetValue(UpdateField,"Upland Forest")
elif row.GetValue(LEV1) == 5:
row.SetValue(UpdateField,"Water")
elif row.GetValue(LEV1) == 6:
row.SetValue(UpdateField,"Wetlands")
elif row.GetValue(LEV1) == 7:
row.SetValue(UpdateField,"Barren Land")
elif row.GetValue(LEV1) == 8:
row.SetValue(UpdateField,"Trans, Comm, & Util")
cur.UpdateRow(row)
row = cur.Next()
del cur