Skip to main content
OCLC Support

ReleaseRecordLock

Find the syntax, use, parameters, return values, and an example for the ReleaseRecordLock macro command in Connexion client.
Syntax BOOL = CS.ReleaseRecordLock
Use to Release the lock on a WorldCat record.

Same as using the Action > Release Record Lock menu command.
Parameters None
Comments You must be logged on and have a locked record displayed to run this macro.
Return values TRUE if the action is successful, or FALSE if not.
Example Sub Main()

     Dim CS As Object
     Dim bResult As Integer

     Set CS = GetObject(,“Connex.Client”)

     If CS.IsOnline = False Then
          CS.Logon ““, ““, ““
     End If

     CS.Search “WC”, “#1”

     If CS.Lock = True Then
          bResult = CS.ReleaseRecordLock

     If bResult = True Then
          MsgBox "The command completed successfully"
     Else
          MsgBox "The command did not complete successfully"
     End If
  End If
End Sub

What this example does
  • Logs on to Connexion if not already logged on, using the default authorization and password you selected in Tools > Options > Authorizations tab.
  • Searches WorldCat for record number 1.
  • Locks the original copy of record number 1.
  • Releases the lock on the record.
  • If the action is successful, returns the message: The command completed successfully. If not, returns the message: The command did not complete successfully.