Skip to main content
OCLC Support

ChangeRecordType

Find the syntax, use, parameters, return values, and an example for the ChangeRecordType macro command in Connexion client.
Syntax BOOL = CS.ChangeRecordType (nRecordType)
Use to Change the MARC format of a record to another type.
Parameters For nRecordType, enter one of the following numbers, depending on which format you want to apply to the current record:
  • 0 = Books
  • 1 = Computer Files
  • 2 = Continuing Resources (formerly called Serials; includes serials and integrating resources material types)
  • 3 = Maps
  • 4 = Mixed Materials
  • 5 = Scores
  • 6 = Sound Recordings
  • 7 = Visual Materials
Return values TRUE if the record changes to the specified format, 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.ChangeRecordType 1 = True Then
          MsgBox "Record format changed to computer files"
     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.
  • Changes record type to Computer Files.
  • If the action is successful, returns the message: Record format changed to computer files.