ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing.Controls Namespace / TableControl Class / GetFieldIndex Method
The name of the field.

In This Topic
    GetFieldIndex Method (TableControl)
    In This Topic
    Gets the index of the field with the given name.
    Syntax
    Public Function GetFieldIndex( _
       ByVal fieldName As String _
    ) As Integer
    public int GetFieldIndex( 
       string fieldName
    )

    Parameters

    fieldName
    The name of the field.

    Return Value

    The index of the field. -1 is returned if the field name is not found.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also