Doorgaan naar de website
OCLC Support

CopyRecord

Find the syntax, use, parameters, return values, and an example for the CopyRecord macro command in Connexion client.
Syntax CS.CopyRecord (sToFile)
Use to Copy a local file record or records selected in a local file list to another, existing local file that you specify.

Same as using the Action > Copy Record menu command.
Parameters For sToFile, enter the full path and file name of an existing local file to which you want to copy the record(s).
Comments The macro command must specify an existing path and file name, or the macro will fail. It does not create folders in the path or the file.
Return values TRUE if the action is successful, or FALSE if not.
Example Sub Main()

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

     CS.CopyRecord “d:\Data\NewBib.bib.db”
End Sub

What this example does
  • Copies the current local record or records selected in a local file list to the NewBib.bib.db file in the \Data folder of the D drive.
  • Also retains the record(s) in the original file.