Skip to main content
OCLC Support

DeleteRecord

Find the syntax, use, parameters, return values, and an example for the DeleteRecord macro command in Connexion client.
Syntax BOOL = CS.DeleteRecord
Use to Delete a record, or records selected in a list, from the online or local save file.

Same as using the Action > Delete Record menu command.
Parameters None
Comments You must be logged on and have a save file record open 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 “BS”, “sf:1”

     bResult = CS.DeleteRecord

     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 online bibliographic save file for the record with save file number 1.
  • Deletes save file 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.