Progress
Version 9
Product Update Bulletin


FIND-CURRENT( ) Method

Changes the lockmode of a record in a buffer.

Return Type: LOGICAL

Applies To: Buffer Object handle

The FIND-CURRENT method has the following syntax:

SYNTAX

FIND-CURRENT ( [ lockmode [ , wait-mode ] ] ) 

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:

DEFINE VARIABLE bh AS HANDLE. 
bh = BUFFER customer:HANDLE. 
DO Transaction: 
	bh:FIND-CURRENT(EXCLUSIVE-LOCK). 
END. 
	MESSAGE bh:CURRENT-CHANGED cust.cust-num. 

NOTES

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