dtw_table_SetCols()

Usage

Sets the number of columns of the table and allocates storage for the column headings. Specify the column headings when the table is created; otherwise, you must specify them by calling this utility function before using any other table functions. You can only use the dtw_table_SetCols() utility function once for a table. Afterwards, use the dtw_table_DeleteCol() or dtw_table_InsertCol() utility functions.

Format

int dtw_table_SetCols(void *table, int cols)

Parameters
table A pointer to a new table that has no columns or rows allocated.
cols The initial number of columns to allocate in the new table.

Examples

void *myTable;
 
rc = dtw_table_SetCols(myTable, 5);


[ Top of Page | Previous Page | Next Page | Index ]