Skip to main content
OCLC Support

GetNextItem

Find the syntax, use, parameters, return values, and an example for the GetNextItem macro command in Connexion client.
Syntax BOOL = CS.GetNextItem
Use to Select and open the next entry on the current list.
Parameters None
Comments Opens any type of entry on the list, whether it is a record or another list.

If you are on a record, opens the next record in the 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
          ‘ Get brief list
        If CS.GetFirstItem() = True Then
          ‘ Get the first record from the list
        If CS.GetFirstItem() = True Then
          ‘ Move to the second record
        CS.GetNextItem() = True Then
        End If
     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.
  • Selects and opens the next record in the list.