Available in:
Apps (win)
Apps (char)
Reportwriter
RPC
Standalone PL
X
X
X
X
X
int list_colix(list-name,col-name) list list-name expr col-name
| list-name | specifies the name of the list that contains
the column to index. The list must have been created with a SELECT
statement to have column names.
|
| col-name | specifies the column to index. |
{
list xx, yy;
xx = list_open("SELECT * FROM org", 1000);
yy = list_open("20 16 10", 1000, "LMD");
printf(list_colix(xx, "DEPTNUMB"));
printf(list_colix(xx, "DEPTNAME"));
printf(list_colix(yy, "DEPTNUMB"));
list_close(xx);
list_close(yy);
}