Skip to main content
OCLC Support

ExportAppend

Find the syntax, use, parameters, return values, and an example for the ExportAppend macro command in Connexion client.
Syntax BOOL = CS.ExportAppend (sName)
Use to Export record(s) to a destination file specified by its name as pre-defined in Tools > Options > Export.
  • Creates the file if it doesn't already exist and adds the records, or appends the records to the end of an existing file.
  • Eliminates export prompts.
  • Exports the displayed record or records selected in a list.

Required: The export destination file must be pre-defined in Tools > Options > Export or the macro will fail. Defining the file destination does not create the file. The file is created the first time you export records to it.
Parameters For sName, enter the name of the export destination file that you assigned when you created the destination. Enclose the name in quotation marks (").
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.ExportAppend “Data”
End Sub

What this example does
  • Exports the currently displayed record, or records selected in a list, to the file destination named Data. Creates the file if it doesn't exist.
  • If the file exists and already contains records, appends the newly exported record(s) to the end of the file.
  • No prompts are displayed.