list_prev
Repositions pointer to the previous item in the list.
Available in:
Apps (win) |
Apps (char) |
Reportwriter |
RPC |
Standalone PL |
X |
X |
X |
X |
X |
Syntax
int list_prev(list-name)
list list-name
Description
Decrements the current list pointer for the specified list if possible.
Returns the current position in the list. You can also use the
-- operator on the list variable to decrement the position however
this will not return the new position number.
Example
Useful as part of the trigger code for the up-arrow key:
{
if (list_pos(p.w1) != list_prev(p.w1) /* did we move? */
.
.
}