move_f2l
Moves data from the window fields to the window list.
Available in:
Apps (win) |
Apps (char) |
Reportwriter |
RPC |
Standalone PL |
X |
|
|
X |
|
Syntax
void move_f2l(action)
int action
Description
Copies the data from all the fields with list attribute
set into the current window list based on the value of action.
action | specifies the action to take and can be:
- 0 --- Update current item with the field data values.
If the list is empty, a list row is created with the field data values.
- < 0 --- Insert field data values before the current item.
- > 0 --- Insert field data values after the current item.
|
Notes
For INSERT, the window list current item pointer is set to the new item
and its status is set to item-insert. For UPDATE, the item status is
set to item-update.
Example
Updates the current record in the window list and
moves to the next record in the list:
{
move_f2l(0);
list_next(p.wl);
}