Skip to main content
OCLC Support

ApplyLocalDefaultCD

Find the syntax, use, parameters, return values, and an example for the ApplyLocalDefaultCD macro command in Connexion client.
Syntax BOOL = CS.ApplyLocalDefaultCD
Use to Apply the local default constant data record to the current record or to records selected in a list.

Same as using the menu command Edit > Constant Data > Local > Apply Default.
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.ApplyLocalDefaultCD

     Dim nSlotNum as Integer
     nSlotNum = CS.SaveToLocalFile (False, False)
     MsgBox “Record saved with “ & nSlotNum & “ slot number”
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.
  • Applies the default local constant data record number 1.
  • Saves the online record number 1 to the default bibliographic local save file.
  • Displays the following confirmation message with the local save file number (xxx) assigned to the record: Record saved with xxx slot number.