Determining the Next Field in the Scrollable Region

To determine the data row and column coordinates of the field in the scrollable region to be processed next, use the scrollable region next position function sr_nextpos():

void sr_nextpos(rowp, colp, srp)
 
int *rowp;
/* Pointer to next data row
*/
int *colp;
/* Pointer to next data column
*/
SRPTR srp;
/* Scrollable region being processed
*/

sr_nextpos() is useful when called in an end-field function for a field in a scrollable region. However, the next data row and column is useful only when the user is staying within the same item. You should call fm_nextitem() and check that it returns AC_SAMEITEM before calling and using the data received from sr_nextpos().


Home Contents Previous Next