Returns the number of library windows, open in the application.
Applies to: Application object
[[Let] countRet =] object.LibWindowsNum () |
The LibWindowsNum method syntax has these parts:
Part | Description |
object | Required. An expression, that returns an instance of the Application object. |
countRet |
Optional. A Long type variable. |
If there are no library windows in the application, the LibWindowsNum method returns 0. Also note, that the number of library windows is less or equal to the number of open libraries, because a library window can't exist without a library in it. So, the following expression always returns True:
thisApp.LibWindowsNum() <= thisApp.LibsNum() ' returns True
This example contains a application-level script. The script calculates and displays the average number of libraries in each library window.
TRACE thisApp.LibsNum()/thisApp.LibWindowsNum() |
See Also |
FirstLibWindow method, LibWindowByID method, NextLibWindow method, Window object |