Doorgaan naar de website
OCLC Support

GetPrevItem

Find the syntax, use, parameters, return values, and an example for the GetPrevItem macro command in Connexion client.
Syntax BOOL = CS.GetPrevItem
Use to Select and open the previous item 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

     If CS.Search(“WC”, “gon,wi,th,w”) > 0 Then
          If CS.GetFirstItem() = True Then
               If CS.GetFirstItem() = True Then
                    If CS.GetNextItem() = True Then
                    CS.GetPrevItem
                    End If
               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.
  • Selects and opens the previous record in the list (the first record opened originally).