Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : REPOSITION-BACKWARD( ) method
 

REPOSITION-BACKWARD( ) method

Moves a query object's result list pointer back a particular number of rows.
Return type: LOGICAL
Applies to: Query object handle

Syntax

REPOSITION-BACKWARD ( n )
n
An integer expression representing the number of rows.
REPOSITION-BACKWARD( ) always places the cursor between rows. For example:
*If the cursor in on a row—say, row 5—REPOSITION-BACKWARD(1) moves the cursor to row 4, then to half way between rows 4 and 5. From this position, GET-PREV( ) moves the cursor to row 4, while GET-NEXT( ) moves the cursor to row 5.
*If the cursor is between two rows—say, between rows 5 and 6— REPOSITION-BACKWARD(1) moves the cursor to half way between rows 4 and 5. From this position, GET-PREV( ) moves the cursor to row 4, while GET-NEXT( ) moves the cursor to row 5.
Note: The REPOSITION-BACKWARD method corresponds to the REPOSITION statement BACKWARDS option.