Skip to main content
Version: Next

METHOD SET ACCESS MODE

METHOD SET ACCESS MODE ( mode )

ParameterTypeDescription
modeIntegerAccess mode for locked objects

This command is not thread-safe, it cannot be used in preemptive code.

Description

The METHOD SET ACCESS MODE command sets the behavior for 4D when you attempt to write access an object already loaded for modification by another user or process. The scope of this command is the current session.

In mode, you pass one of the following constants of the Design Object Access theme:

ConstantTypeValueComment
On object locked abortInteger0Loading of object is aborted (default functioning)
On object locked confirmInteger24D displays a dialog box so that you can choose to try again or to abort. In remote mode, this option is not supported (loading is aborted)
On object locked retryInteger14D keeps attempting to load the object until it has been released