Database.LockTimeout([Boolean]) Method

Version: Available or changed with runtime version 1.0.

Determines whether the lock time-out setting is set to On. You can also use this method to override the default setting.

Syntax

[LockTimeout := ]  Database.LockTimeout([LockTimeout: Boolean])

Note

This method can be invoked using property access syntax.

Note

This method can be invoked without specifying the data type name.

Parameters

[Optional] LockTimeout
 Type: Boolean
The new setting for whether the lock time-out is on.

Return Value

[Optional] LockTimeout
 Type: Boolean
This value shows whether to use a lock time-out.

Remarks

This method has been designed specifically for use in long-running processes that should not be terminated because of a lock time-out, for example batch jobs that run overnight.

When the AL code has finished running, the default setting is used again. This method does not change the duration of a lock time-out.

See Also

Database Data Type
Get Started with AL
Developing Extensions