MemCom Reference Manual > MemCom C API Manual Pages > Sparse Table Functions > mcSTcolNum

Name

mcSTcolNum — Get the current number of columns for a sparse-table dataset

Synopsis

#include <memcom.h>

mcInt64 mcSTcolNum(int dsid);

Description

mcSTcolNum returns, for the sparse-table dataset identified by dsid, the current number of columns. For a newly-created dataset or an emptied dataset, the number of columns is 0.

Parameters

dsid (input)

Dataset identifier.

Return Value

If completed successfully, the function returns the number of columns. Otherwise, a negative value indicating the MemCom error number is returned.

See Also

mcDBinqSetAtt, mcSTrowNum