list_read

Reads from a list.

Available in:

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

Syntax

expr list_read(list-name,col)
list           list-name
int            col

Description

Returns the column of the current position and advances the current item pointer.

Example

Prints the data items specified to be read.
{
 list xx;
 xx = list_open("20 16 10", 1000, "Media Report");
 list_mod(xx, 1, "1", "2", "3");
 list_mod(xx, 1, "4", "5", "6");

 printf(list_read(xx, 0));
 printf(list_read(xx, 1));
 printf(list_read(xx, 2));
 list_close(xx);
}