Adding a field to the attribute table in ArcGIS

Dim pMyField3 As IFieldEdit
Set pMyField3 = New Field

With pMyField3
.Name = “Topo”
.Type = esriFieldTypeDouble
End With

Dim pTable3 As ITable
Set pTable3 = pFeatureLayer
pTable3.AddField pMyField3

Advertisements
Post a comment or leave a trackback: Trackback URL.

Comments

  • K  On September 22, 2011 at 10:42 am

    For .NET:
    Dim pMyField3 As IFieldEdit
    pMyField3 = New Field

    With pMyField3
    .Name_2 = “Topo”
    .Type_2 = esriFieldType.esriFieldTypeDouble
    End With

    Dim pTable3 As ITable
    pTable3 = pFL1
    pTable3.AddField(pMyField3)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: