ISAppointment.ClearLock

Description

The appointments cannot be changed outside the current transaction with a lock set up. For example, if the appointment window is opened for editing after the lock is set up, a blocking message will appear. The function allows to unlock the appointments for editing.

Syntax

object.ClearLock

Part Attribute Type Description
object Required
The object always implements the ISAppointment interface

Example

Unlock the appointments for editing.

Set aApp = Profile.LoadAppointment(119)
aApp.ReasonDescription = "QQQQQQQQQQQ" 'App is locked inside change method
MsgBox("Wait change")
aApp.ClearLock 'App is unlocked after editing
MsgBox("Lock is clear")

  
Note:

Version information

Added in v7.8.0