Previous Next

CURRENT-RESULT-ROW function
Returns the number of the current row of a specified query as an INTEGER value.
Syntax 
 
CURRENT-RESULT-ROW ( query-name )
query-name
A character expression that evaluates to the name of a currently open, scrolling query. If query-name does not resolve to the name of a query, or if the query is not open or not scrolling, then the function returns the Unknown value (?).
Note:
Example 
The following example uses the QUERY-OFF-END function to determine when to leave the REPEAT loop:
 
DEFINE QUERY cust-query FOR Customer SCROLLING.
OPEN QUERY cust-query FOR EACH Customer WHERE Customer.Country = "USA".
 
REPEAT:
  GET NEXT cust-query.
  IF QUERY-OFF-END("cust-query") THEN LEAVE.
  DISPLAY CURRENT-RESULT-ROW("cust-query") LABEL "Result Row" 
    Customer.CustNum Customer.Name.
END.
Notes 
*
*
*
*
See also 
CLOSE QUERY statement, CURRENT-REQUEST-INFO attribute, DEFINE BROWSE statement,DEFINE QUERY statement, GET statement, NUM-RESULTS function, OPEN QUERY statement, REPOSITION statement

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.