field_rows

Returns the number of rows in a multi-row window.

Available in:

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

Syntax

int field_rows()

Example

Useful as part of the trigger code for the down-arrow key:
{
int rows;
if (list_pos(p.wl) != list_next(p.wl)) { /* did we move? */
  rows = field_rows() - 1;               /* # of rows */
  if (rows > 0) {                        /* multi row window? */
.

}