list_seek

Moves the current item pointer in a list.

Available in:

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

Syntax

void list_seek(list-name,row)
list           list-name
int            row

Description

Positions the current item pointer to row.

Example

Seeks a position and prints from it.
{
 list xx;
 int i;
 xx = list_open("20 16 10", 1000, "RT1");
 list_mod(xx, 1, "1", "2", "3");
 list_mod(xx, 1, "4", "5", "6");

 list_seek(xx,0);
 for (i=list_rows;i;i--) printf(list_read(xx,0));
 list_close(xx);
}