Doorgaan naar de website
OCLC Support

ApplyCDFromList

Find the syntax, use, parameters, return values, and an example for the ApplyCDFromList macro command in Connexion client.
Syntax BOOL = CS.ApplyCDFromList ( nListIdx, nOption)
Use to Apply a constant data record from a list to the currently displayed bibliographic or authority record.

Same as using one of the following the menu commands:
  • Edit > Constant Data > Online > Apply from List
  • Edit > Constant Data > Local > Apply from List
Parameters
  • For nListIdx, enter the list number of the constant data record you want to apply (first record on the list is number 1).
  • For nOption, enter one of the following numbers to indicate which fields to apply:
    • 0 - Fixed field
    • 1 - Variable fields
    • 2 - Both
Comments You must have a list of constant data records open to use this command.

The list index is 1-based.
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”

     If CS.ApplyCDFromList(3, 1) = True Then
          MsgBox "Constant data successfully applied"
     Else
          MsgBox "Constant data not applied"
     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.
  • Applies variable fields only of the third record in the current list of constant data records to WorldCat record number 1.
  • If successful, returns the message: Constant data successfully applied. If not, returns the message: Constant data not applied.