EXCLUSIVE()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to return access status for a table

Syntax

EXCLUSIVE([<workarea | alias>])

See Also

INDEX, 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