list_curr

Reads a data item from a list.

Available in:

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

Syntax

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

Description

Returns the value from the current item. Similar to list_read(); however, this function does not advance the current item pointer.
list-name specifies the list.

col specifies the column.

Example

Prints the data item at the current item position.
{
 list xx;
 xx = list_open("20 16 10", 1000, "RTList");
 list_mod(xx, 1, "1", "2", "3");
 list_mod(xx, 1, "4", "5", "6");
 printf(list_curr(xx, 2));
 list_close(xx);
}