Doorgaan naar de website
OCLC Support

GetFirstSelectedItem

Find the syntax, use, parameters, return values, and an example for the GetFirstSelectedItem macro command in Connexion client.
Syntax BOOL = CS.GetFirstSelectedItem
Use to Opens the first selected 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”)

     CS.Logon ““, ““, ““
     CS.Search “WC”, “gon,wi,th,w/sco” CS.SearchList “Max”, “Description”, False
     boolean = CS.GetFirstSelectedItem
     While boolean = True
          CS.Validate sErrors
          CS.CloseRecord False
          boolean = CS.GetNextSelectedItem
     Wend
End Sub

What this example does
  • Logs on to Connexion using the default authorization and password you selected in Tools > Options > Authorizations tab.
  • Searches WorldCat for items with the title Gone with the Wind in scores format.
  • Searches the Description column of the results list and selects items in the list that contain the term Max. Selects seven items.
  • Gets the first selected record in the list, validates the record, and closes it without saving.
  • Gets the next selected record in the list.