LayerAPI.getAttributeName

 

string getAttributeName(string attrIndex)

This method returns the attribute (column) name of the column with index attrIndex for the database table associated with this layer. Valid values of attrIndex are 0 through n-1, where n is the value returned by getNumAttributes.