Returns an instance of the Window object corresponding to the next window in the window collection of the document.
Applies to: Document object
[[Set] windowRet =] object.NextView () |
The NextView method syntax has these parts:
Part | Description |
object | Required. An expression, that returns a Document object. |
windowRet | Optional. A Window.type variable. |
The FirstView method must be called prior to using the NextView method, otherwise the NextView method will return Nothing. The NextView method also returns Nothing when the end of the list of the windows has been reached.
Note, that the window collection of the document can include windows of the following types (the Type property): document window, table window, Basic window. It's convenient to use the NextView method together with the FirstView method to go through all windows of the document.
See Also |
Type property, FirstView method, ViewByID method, ViewsNum method, UpdateAllViews method, Window object |