Doorgaan naar de website
OCLC Support

IsHeldBy

Find the syntax, use, parameters, return values, and an example for the IsHeldBy macro command in Connexion client.
Syntax BOOL = CS.IsHeldBy (sSymbol, sState)
Use to Determine whether a specified holding symbol (OCLC institution symbol) is included in the current record.
Parameters
  • For sSymbol, enter the holding symbol.
  • Enter the parameter sState to store the state/country of the institution represented by the holding symbol.
Comments You must be logged on to run this macro.
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.IsHeldBy(“OCL”, sState) = True Then
          MsgBox “Record #1 is held by OCL in “ + sState
     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.
  • Determines whether the institution symbol OCL (symbol for OCLC) is included in the current record and returns a message that includes the state/country where OCLC is located: Record #1 is held by OCL in Ohio [state where OCLC is located].