Difference between revisions of "ISEXCLUSIVE()"
From Lianjapedia
Yvonne.milne (Talk | contribs) (Created page with "==Purpose== Function to return access status for a table or database ==Syntax== ISEXCLUSIVE([<workarea | alias> [, 1]]) ISEXCLUSIVE(cDatabase, 2) ==See Also== EXCLUSIVE()...") |
Yvonne.milne (Talk | contribs) |
||
Line 31: | Line 31: | ||
[[Category:Cursor Functions]] | [[Category:Cursor Functions]] | ||
[[Category:Database Functions]] | [[Category:Database Functions]] | ||
− | [[Category:Lianja v8. | + | [[Category:Lianja v8.2]] |
Revision as of 10:32, 22 February 2023
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()