Doorgaan naar de website
OCLC Support

GetFirstItem

Find the syntax, use, parameters, return values, and an example for the GetFirstItem macro command in Connexion client.
Syntax BOOL = CS.GetFirstItem
Use to Select and open the first entry on the current list.
Parameters None
Comments Opens any type of entry on the list, whether it is a record or another list.
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

     ‘ Get the first record from the first list
     If CS.Search(“WC”, “gon,wi,th,w”) > 0 Then
          If CS.GetFirstItem() = True Then
               CS.GetFirstItem()
          End If
     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 the title Gone with the Wind.
  • If the search retrieves multiple records (a group list in this case), selects and opens the first item on the list (which is a brief list).
  • Selects and opens the first record in the brief list.