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

UNLOCKREL( nMode, aTables )

Purpose

(multi-user only) Unlock the current record and child tables or parent
records.

Arguments

     nMode -- 1 = unlock current record and child tables;
              2 = unlock parent records

     aTables -- array of child/parent tables; generates them if not passed
                and they're required

Setup

If you want this function to generate the array of child/parent tables for
you, then the application dictionary must be open.

For speed, you may want to generate the array of child/parent tables first
(see Notes).

Example

GET_STD2() locks the current record and child tables with child records
during a key edit, and the parent record for the REPLACE.

     LOCKREL( 1, .F., .T. )
     * Put your GET routine here
     LOCKREL( 2 )
     * Put your REPLACE routine here
     UNLOCKREL( 2 )
     UNLOCKREL( 1 )

Returns

.T.

Side Effects

Locks, if any, are removed from the specified records/tables.

Artful Calls

CHILDREN, PARENTS

Source File

AM_LOCKS.PRG

See Also: LOCKREC() LOCKFILE() LOCKREL() GET_STD2()

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