AnsweredAssumed Answered

'Text' vs 'String' keyword for field attribute creation and description

Question asked by gnewburyiv on Aug 23, 2017
Latest reply on Aug 23, 2017 by gnewburyiv

Any idea why the input requirements for adding a string/text field is different than the 'type' attribute for a string/text field?

 

 

For example:

----

myfc  =  r'C:\Foo\bar.gdb\somefc'

arcpy.AddField_management(myfc, 'MyStringField', 'TEXT',5)

myfc_pyobject = arcpy.ListFields(myfc,'MyStringField')[0]

------

 

 

myfc_pyobject.type would print out 'String'

 

 

Seems like they should be the same.

 

Thanks

George

Outcomes