Doorgaan naar de website
OCLC Support

InsertText

Find the syntax, use, parameters, return values, and an example for the InsertText macro command in Connexion client.
Syntax BOOL = CS.InsertText (sText)
Use to Insert specific text in a record at the cursor location (text can span multiple fields).
Parameters For the parameter sText, enter the text string you want to insert, enclosed in quotation marks (“).
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

     CS.Search “WC”, “#1”

     If CS.ItemType = 0 Then
          CS.CursorRow = 8
          CS.CursorColumn = 6

     If CS.UncontrolHeading = True Then
          CS.InsertText “Uncontrolled”
     Else
          CS.IndertText “Could not control”
     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 record number 1.
  • If the current window is a bibliographic record, places the cursor in the sixth position of the eight row.
  • If the heading at that position is controlled, uncontrols it and inserts the text: Uncontrolled. Otherwise, inserts the text: Could not uncontrol.