PreviousNextIndex

FIND-LAST( ) method

Gets a single record. This method lets a user get the last record that satisfies the predicate expression.

Return type: LOGICAL

Applies to: Buffer object handle

Syntax
FIND-LAST  ( predicate-expression [ , lockmode [ , wait-mode ] ] ) 

predicate-expression
lockmode
wait-mode

The following shows some examples of the FIND-LAST method:

DEFINE VARIABLE bh AS HANDLE NO-UNDO. 
bh = BUFFER Customer:HANDLE. 
bh:FIND-LAST("WHERE Customer.Balance > 0 use-index name"). 
bh:FIND-LAST("WHERE Customer.CustNum > 5 AND Customer.Address < 'z'"). 

If FIND-LAST succeeds, it returns TRUE, otherwise it returns FALSE.

If FIND-LAST fails, it does not raise an error but displays an error message. You can suppress the message using NO-ERROR on the statement containing the method.

See also: FIND-CURRENT( ) method, FIND-FIRST( ) method, FIND-UNIQUE( ) method, FIND statement


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex