CURRENT-RESULT-ROW ( 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 (?).
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.
When possible, the AVM performs optimizations for GET LAST and REPOSITION statements. These optimizations make the results list invalid. At that point, CURRENT-RESULT-ROW returns the Unknown value (?). These optimizations do not occur if the query is opened with the PRESELECT option or has an associated browse widget.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |