Chapter Contents

Previous

Next
Data Set Data Model: _getCurrentRowNumber

Data Set Data Model: _getCurrentRowNumber



Returns the relative row number of the current row


Syntax
Details

Syntax

CALL SEND (object-id, '_getCurrentRowNumber', row-num);

Argument Type Description
row-num
N returns one of the following:


the relative row number of the current row.


-1 if no row is current or if no rows are displayed


a missing value if the row is new


Details

If you have a viewer and the viewer is a data form, a form editor, or a subclass of the form editor, then the value returned for row-num is the currently displayed row regardless of the mode and locking level.

If you have a viewer and the viewer is a data table, a table editor, or a subclass of the table editor, then the value returned for row-num varies based on mode and locking level. If the mode is edit with record level locking, then row-num is the currently locked row. If the mode is browse or edit with member level locking, then the value returned for row-num is the row where the table editor's active cell indicator is located.

If no viewer is attached, the current row is the row most recently read using _getRow or _fetchRow.

If you fetch a row with the _fetchRow method and that row is already locked by another edit session on the data set, then _getCurrentRowNumber returns a -1.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.