Returns an instance of the Window object that corresponds to the first library window in the window collection of the application.
Applies to: Application object
[[Set libWindowRet =] object.FirstLibWindow () |
The FirstLibWindow method syntax has these parts:
Part | Description |
object |
Required. An expression, that returns an instance of the Application object. |
libWindowRet | Optional. A Window type variable. |
If there are no library windows in the application, the FirstLibWindow method returns Nothing. To get the next windows in the window collection, use the NextLibWindow method.
This example contains an application-level script. The script displayes the titles (the Title property) of all libraries in the first library window of the application.
Dim libWnd As Window ' Declare variables Set libWnd = thisApp.FirstLibWindow() ' Get first window If libWnd <> Null Then For i=1 To libWnd.LibsNum() ' For each library in the window TRACE libWnd.Lib(i).Title ' display its title Next i Else TRACE "There are no library windows!" ' If there are no library windows End If |
See Also |
LibWindowByID method, LibWindowsNum method, NextLibWindow method, Window object |