Moves a query object's result list pointer to the row corresponding to the specified sequence number.

Return type: LOGICAL

Applies to: Query object handle

Syntax

REPOSITION-TO-ROW ( n )
n
An integer expression representing the sequence number.

Notes

  • The REPOSITION-TO-ROW method corresponds to the REPOSITION statement with the TO ROW option.
  • When you execute an OPEN QUERY or REPOSITION statement for a query associated with a browse widget, the browse is automatically adjusted to remain in sync with the query. However, when you execute a GET statement or method, the browse is not adjusted. You can use the GET statement, or one of the GET methods (GET-CURRENT/FIRST/LAST/NEXT/PREV) to perform background processing without affecting the browse, but you must execute a REPOSITION statement or one of the REPOSITION methods (REPOSITION-BACKWARD/FORWARD/TO-ROW/TO-ROWID) to put the query and browse back in sync.

See also

REPOSITION statement, REPOSITION-FORWARD( ) method, REPOSITION-TO-ROWID( ) method