Is data file locked

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 2003


Is data file locked Boolean

ParameterTypeDescription
This command does not require any parameters
Function resultBooleanTrue = file/segment locked
False = file/segment not locked

Description

The Is data file locked command returns True if the data file of the open database or at least one of its segments is locked — i.e. write protected.

Placed, for instance, in the On Startup Database Method, this command enables the prevention of any risk of accidental opening of a locked data file.

Example

This method will prevent the opening of the database if the data file is locked:

   If(Is data file locked)
      ALERT("The data file is locked. Impossible to open database.")
      QUIT 4D
   End if

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next