Skip to main content
OCLC Support

DeleteHoldings

Find the syntax, use, parameters, return values, and an example for the DeleteHoldings macro command in Connexion client.
Syntax BOOL = CS.DeleteHoldings
Use to Delete your holdings (OCLC symbol) from the current record or from records selected in a list.

Same as using the Action > Holdings > Delete Holdings menu command.
Parameters None
Comments
  • If you are logged on, this macro does the action immediately online.
  • If you are working with local file records while offline, this macro marks the current record, or records selected in a list, ready (R) to batch-process the action.
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.DeleteHoldings

     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.
  • Deletes holdings (removes your OCLC institution symbol) from 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.