This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20.6
Is data file locked

Is data file locked 


 

Is data file locked -> Function result 
Parameter Type   Description
Function result  Boolean in True = file/segment locked False = file/segment not locked

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

 
PROPERTIES 

Product: 4D
Theme: 4D Environment
Number: 716

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D 2003

 
ARTICLE USAGE

4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)