Skip to main content
OCLC Support

ItemType

Find the syntax, use, parameters, return values, and an example for the ItemType macro command in Connexion client.
Syntax nType = CS.ItemType
Use to Return the window type of the current (top-most) window.
Parameters None
Return values Returns an integer that indicates the type of the current window. The numbers indicate the following window type:
  • 0  Online bibliographic record (WorldCat)
  • 1  Online bibliographic save file record
  • 2  Online bibliographic constant data record
  • 3  Online authority record (Authority File)
  • 4  Online authority save file record
  • 5  WorldCat group list
  • 6  WorldCat brief list
  • 7  Online bibliographic save file list
  • 8  Online bibliographic constant data list
  • 9  WorldCat browse list
  • 10  Authority brief list
  • 11  Authority browse list
  • 13  Online authority save file list
  • 14  Online authority constant data record
  • 15  Online authority constant data list
  • 16  Authority expanded browse list
  • 17  Local bibliographic save file record
  • 18  Local authority save file record
  • 19  Local bibliographic constant data record
  • 20  Local authority constant data record
  • 21​​​​​​​  Local bibliographic save file list
  • 22​​​​​​​  Local authority save file list
  • 23​​​​​​​  Local bibliographic constant data list
  • 24​​​​​​​  Local authority constant data list
  • 25​​​​​​​  WorldCat truncated list
  • -1 Undefined
Example Sub Main()

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

     If CS.Logon ““, ““ ““ = True Then
       CS.Search(“AS”, “pn:jones”)

     If CS.ItemType = 13 Then
       MsgBox “Online authority save file list”
       If CS.GetFirstItem() = True Then
        If CS.ItemType = 4 Then
          MsgBox “Online authority save file record” End If
        End If
       End If
     End If
End Sub
What this example does
  • Logs on to Connexion, using the default authorization and password you selected in Tools > Options > Authorizations tab.
  • Searches the online authority save file for the personal name Jones.
  • If the search successfully retrieves multiple records, returns the message: Online authority save file list.
  • Gets the first item on the list and, if the first item is an authority save file record, returns the message: Online authority save file record.