Open Table of Contents

Rename Field

Changes the name of an existing field in the attribute table.

Command line syntax 

ET_GPRenameField <input_dataset> <old_name> <new_name>


Expression Explanation
<input_dataset> A feature class or feature layer.
<old_name> A String - the name of the field to be changed.

Note. Some fields can not be renamed (Shape, OID, FID  etc.) 

<new_name> A String - the new name of the field. The new field name should not duplicate the name of an existing field. It should not contain special charecters (space, "%", "&" etc.)

Scripting syntax

ET_GPRenameField (input_dataset,old_name, new_name)

See the explanations above:
<> - required parameter
{} - optional parameter

.NET implementation

RenameField(pInFC As IFeatureClass, sOldName As String, sNewName As String) As Boolean

Copyright Ianko Tchoukanski