Difference between revisions of "EXCLUSIVE()"

From Lianjapedia
Jump to: navigation, search
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return access status for a table
 
Function to return access status for a table
 
  
 
==Syntax==
 
==Syntax==
 
EXCLUSIVE([<workarea | alias>])
 
EXCLUSIVE([<workarea | alias>])
 
  
 
==See Also==
 
==See Also==
[[INDEX]], [[MODIFY STRUCTURE]], [[ON ERROR]], [[PACK]], [[REINDEX]], [[SET EXCLUSIVE]], [[USE]], [[ZAP]]
+
[[INDEX]], [[ISEXCLUSIVE()]], [[PACK]], [[REINDEX]], [[SET EXCLUSIVE]], [[USE]], [[ZAP]]
 
+
  
 
==Description==
 
==Description==
The EXCLUSIVE() 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 MODIFY STRUCTURE, PACK, REINDEX, INDEX ON <exp> TAG and ZAP are the only commands that require exclusive use of the table.  For reasons of safety, the INDEX ON ...TO <.ndx> command should also be used only with exclusive use of the table.
+
The EXCLUSIVE() 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.
 
+
  
 
==Example==
 
==Example==
Line 22: Line 18:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:Cursor Functions]]

Latest revision as of 10:55, 15 February 2023

Purpose

Function to return access status for a table

Syntax

EXCLUSIVE([<workarea | alias>])

See Also

INDEX, ISEXCLUSIVE(), PACK, REINDEX, SET EXCLUSIVE, USE, ZAP

Description

The EXCLUSIVE() 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.

Example

if not exclusive()
    dialog box "Command not available."
endif