Doorgaan naar de website
OCLC Support

GetWindowTitle

Find the syntax, use, parameters, return values, and an example for the GetWindowTitle macro command in Connexion client.
Syntax BOOL = CS.GetWindowTitle (nWindowId, sTitle)
Use to Return the specified window title.
Parameters
  • nWindowld is a zero-based window identification.
  • Enter the parameter sTitle to store the window title.
Comments If you use -1 as the window identification, the macro returns the title of the current window.
Return values TRUE if the title is retrieved, or FALSE if not.
Example Sub Main()

     Dim CS As Object
     Dim sTitle As String

     Set CS = GetObject(“Connex.Client”)

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

     CS.OpenWorkform “bks”

     CS.Search “WC”, “#1”
     CS.Search “WC”, “gon,wi,th,w”

     CS.GetWindowTitle 0, sTitle

     MsgBox sTitle

     CS.SetTopWindow 0

     CS.GetWindowTitle -1, sTitle

     MsgBox sTitle
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.
  • Opens a workform with the Books format.
  • Searches WorldCat for record number 1 (opens a record).
  • Searches WorldCat for Gone with the Wind (opens a list).
  • Returns the title of the currently active window: in this case a list, WorldCat Group List, returned from the derived title search for Gone with the Wind.
  • Changes the top window to the first window opened.
  • Returns the title of the new top window, the first window opened: in this case, Bibliographic Workform: Books.