### AST_COLUMNNAME

Get the name of the column at a given index within the Table

#### Description:

This function returns a string holding the name of the column with the given index within the Table.

This function is intended primarily as a means of iterating round all the columns in a Table. For this purpose, the number of columns in the Table is given by the Ncolumn attribute of the Table. This function could then be called in a loop, with the index value going from one to Ncolumn.

Note, the index associated with a column decreases monotonically with the age of the column: the oldest Column in the Table will have index one, and the Column added most recently to the Table will have the largest index.

#### Invocation

RESULT = AST_COLUMNNAME( THIS, INDEX, STATUS )

#### Arguments

##### THIS = INTEGER (Given)
Pointer to the Table.
##### INDEX = INTEGER (Given)
The index into the list of columns. The first column has index one, and the last has index " Ncolumn" .
##### STATUS = INTEGER (Given and Returned)
The global status.

#### Returned Value

##### AST_COLUMNNAME = CHARACTER $\ast$ ( AST__SZCHR )
The upper case column name.

#### Notes:

• A blank string will be returned if this function is invoked with STATUS set to an error value, or if it should fail for any reason.