list_cols

Returns the column count of the list.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

int list_cols(list-name)
list          list-name

Example

Prints the number of columns in the given list.
{
 list xx;

 xx = list_open("20 16 10", 1000, "RT List8");
 list_mod(xx, 1, "1", "2", "3");

 printf(list_cols(xx));
 list_close(xx);
}