Skip to main content
OCLC Support

GetSelectedText

Find the syntax, use, parameters, return values, and an example for the GetSelectedText macro command in Connexion client.
Syntax BOOL = CS.GetSelectedText (sText)
Use to Get selected text from a record (text can span multiple fields).
Parameters Enter the parameter sText to store the selected text.
Return values TRUE if the action is successful, or FALSE if not.
Example Sub Main()

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

     Dim sText as String

     If CS.GetSelectedText(sText) = True Then
          MsgBox sText
     Else
     MsgBox “No text is selected”
     End If
End Sub
What this example does Gets selected text from a record and returns a message giving the text, or returns the message: No text is selected.