Doorgaan naar de website
OCLC Support

CopySelected

Find the syntax, use, parameters, return values, and an example for the CopySelected macro command in Connexion client.
Syntax CS.CopySelected
Use to Copy selected text to the clipboard
Parameters None
Comment You must select text before using this macro command
Return values None
Example Sub Main()
 

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

     If CS.IsOnline = False Then
          CS.Logon ““, ““, ““
     End If

     CS.Search “WC”, “#1”

     If ItemType = 0 Then
          CS.FindText “pastimes”, 0
          CS.CopySelected
          CS.CursorRow = 1
          CS.CursorColumn = 6
          CS.Paste
     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 record number 1.
  • Finds and selects the first occurrence of the word pastimes in the record.
  • Copies pastimes.
  • Pastes pastimes in the first subfield of the first field in the record.