Doorgaan naar de website
OCLC Support

Cancel Changes

Find the syntax, use, parameters, return values, and an example for the Cancel Changes macro command in Connexion client.
Syntax BOOL = CS.CancelChanges
Use to Cancel all changes made to a WorldCat record (if from WorldCat), or cancels all changes made since the last time you saved a record (if from the save file).

Same as using the Edit > Cut Copy Paste > Cancel Changes menu command.
Parameters None
Return values TRUE if the action is successful, or FALSE if not.
Example Sub Main()

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

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

     CS.Search “WC”, “#1”

     CS.AddField 2, “245 Second 245 field”

     CS.CancelChanges
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.
  • Adds a second instance of field 245 with no indicators (two spaces between the tag number and field data) and the text: Second 245 field.
  • Cancels the change (deletes the newly added field 245).