MemCom Reference Manual > MemCom C API Manual Pages > Array Table Functions > mcATinqCellIndex

Name

mcATinqCelIIndex — Get column number of array table

Synopsis

#include <memcom.h>

int mcATinqCellIndex(int handle, const char* name,
                     const char* colname);

Description

mcATinqCellIndex returns the column number of the array table name residing on the database handle given the column name colname. If the colname has been found the column number is returned (note that column numbers start with the index 1). If not, 0 is returned. In case of an error a negative value is returned.

Parameters

handle

Database handle (input).

name

Name of a new dataset defining the array table (input).

colname

Column name of array table for which the column number is required (input).