Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

LOCKREC( [ _wait [, _ask ]] )

Purpose

Multi-user only. Lock the current record in the currently selected
DBF, or keep trying every .5 secs until success or until the
user cancels.

Arguments

     nWait -- if passed, no. of seconds to continue trying to obtain a
                  lock; defaults to 2

     lAsk -- if passed, whether to ask user for permission for another
                 try if a lock could not be obtained; defaults to .T.

Setup

Table must be selected.

Example

     IF CUSTOMER->( LOCKREC() ) ...

Returns

.T. on success, else .F.

Side Effects

Locks the file if successful.

Artful Calls

SETNETWAIT, VERIFY

Source File

AM_LOCKS.PRG

See Also: LOCKFILE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson