list_modcol

Modifies a single column in a list.

Available in:

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

Syntax

void list_modcol(list-name,col,data-col)
list             list-name
int              col
expr             data-col

Description

list-name specifies the list.

col specifies the column to modify.

data-col specifies the data to put into col.

Notes

If the list is a query-generated windows list and list_mod() updates the current item, the original value is stored. lock_row() uses the stored version to compare to the current database value to determine if the row has already been modified. See lock_row() for details. list_modcol() is not allowed for lists in shared memory.

Example

Prints the data item that has been modified.
{
 list xx;
 xx = list_open("20 16 10", 1000, "A List");
 list_mod(xx, 1, "1", "2", "3");

 list_modcol(xx, 0, "2");
 printf(list_curr(xx,0));
 list_close(xx);
}