Returns the index of the library in the library collection of the window.
Applies to: Window object
[[Let] indexRet =] object.FindLib ( inLib ) |
The FindLib method syntax has these parts:
Part | Description |
object | Required. An expression that returns a Window object. |
inLib |
Required. An expression that returns a Library object. |
indexRet | Optional. A Long type variable. |
This method is only effective if the library is a library window (see the Type property). For windows of other types the FindLib method always returns 0.
If the specified library has not been found in the library collection of the window, the FindLib method returns 0. The inverse method for FindLib is the Lib method, which returns a Library object by its index in the library collection of the window.
See Also |
Type property, Lib method, LibByName method, LibsNum method, Library object |