Skip to main content
OCLC Support

Lock

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

Same as using the Action > Lock WorldCat Record menu command.
Parameters None
Comments You must be logged on 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”

     bResult = CS.Lock

     If bResult = True Then
          MsgBox “The command completed successfully”
     Else
          MsgBox “The command did not complete successfully”
     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.
  • If the action is successful, returns the message: The command completed successfully. If not, returns the message: The command did not complete successfully.