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.
object.ClearLock
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISAppointment interface |
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")