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

LOCKFILE( [ nWait[, _ask ]] )

Purpose

Multi-user only. Lock the currently selected DBF, or keep trying every
.5 seconds 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->( LOCKFILE() ) ...

Returns

.T. if successful in locking the file, else .F.

Side Effects

Locks the file if successful.

Artful Calls

SETNETWAIT, VERIFY

Source File

AM_LOCKS.PRG

See Also: LOCKREC()

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