ISEXCLUSIVE()
From Lianjapedia
Revision as of 07:04, 6 March 2023 by Yvonne.milne (Talk | contribs)
Contents
Purpose
Function to return access status for a table or database
Syntax
ISEXCLUSIVE([<workarea | alias> [, 1]])
ISEXCLUSIVE(cDatabase, 2)
See Also
EXCLUSIVE(), INDEX, OPEN DATABASE, PACK, PACK DATABASE, REBUILD DATABASE, REINDEX, REINDEX DATABASE, SET EXCLUSIVE, SET(), USE, ZAP
Description
The ISEXCLUSIVE() function returns .F. if the table open in the currently selected workarea is available for shared access, and .T. if it is open for private use. If the optional <workarea | alias> is specified, the function will operate in the specified location. The optional type value 1 can be specified.
The ISEXCLUSIVE() function can also be used to check the access status for a database, by specifying the database name and the type value 2.
Example
close data ? set([exclusive]) open database southwind ? isexclusive("southwind",2) use shippers ? isexclusive("shippers") ? isexclusive(1,1) ? isexclusive()