gp.CalculateField_management(TABLE, FIELD, "StrConv([texx],vbUpperCase)", "VB")
gp.CalculateField_management(TABLE, "texx", "str(!texx!).upper()", "PYTHON", "")
updateRows = gp.UpdateCursor("sfora_2") updateRow = updateRows.Next() while updateRow: newString = "" for word in updateRow.MYFIELD.split(" "): newString = item.capitalize() + " " + newString updateRow.MYFIELD = newString[:-1] updateRow = updateRows.Next() del updateRow del updateRows
updateRows = gp.UpdateCursor("sfora_2") updateRow = updateRows.Next() while updateRow: updateRow.MYFIELD = updateRow.MYFIELD.upper() #.upper() capitalizes every character updateRow = updateRows.Next() del updateRow del updateRows
updateRows = gp.UpdateCursor("sfora_2") updateRow = updateRows.Next() while updateRow: newString = "" for word in updateRow.MYFIELD.split(" "): newString = word.capitalize() + " " + newString updateRow.MYFIELD = newString[:-1] updateRow = updateRows.Next() del updateRow del updateRows