Progress
Version 9
Product Update Bulletin
FIND-CURRENT( ) Method
Changes the
Return Type: LOGICAL
lockmode
of a record in a buffer.Applies To: Buffer Object handleThe FIND-CURRENT method has the following syntax:
SYNTAX
lockmode
An integer expression evaluating to one of the following constants: SHARE-LOCK, EXCLUSIVE-LOCK, or NO-LOCK. You can assign any of these constants to an integer variable. For example, mylock = NO-LOCK.
The default is SHARE-LOCK.
waitmode
An integer expression evaluating to one of the following: NO-WAIT, 0, or ?. You can assign NO-WAIT to an integer variable. For example, mywait = NO-WAIT.
The default is to wait.
The following shows an example of the FIND-CURRENT method:
NOTES
- If the change in lock status succeeds, TRUE is returned, otherwise FALSE is returned.
- If the lock change fails, a message displays. You can suppress the message using NO-ERROR on the statement containing the method.
- Executing the FIND-CURRENT method resets the CURRENT-CHANGED attribute. If the record in the database changes between the time the original record was found and the time the FIND-CURRENT executes, the CURRENT-CHANGED attribute returns TRUE. If the record does not change, then the CURRENT-CHANGED attribute returns FALSE.
SEE ALSO
FIND-BY-ROWID method, FIND CURRENT statement, CURRENT-CHANGED attribute, CURRENT-CHANGED function, in the Progress Language Reference .
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |