Activate

Syntax

Activate WindowTitle$ [PaneNum]

Remarks

Activates the window with the specified WindowTitle$. You can use the WindowName$() function to store the name of a window in a variable and then use this variable with Activate when you need to activate that window. WindowTitle$ must match a window name on the Window menu.

Argument

Explanation

WindowTitle$

The name of the window to activate, as it appears on the Window menu

PaneNum

The number of the pane to activate:

1 or 2 Top pane

3 or 4 Bottom pane


Example

This example stores the name of the active window, opens a document, and then reactivates the original window:


firstwin$ = WindowName$()
FileOpen "CHAP2.DOC"
Activate firstwin$

See Also

DocSplit, NextWindow, OtherPane, PrevWindow, WindowList, WindowName$(), WindowNumber, WindowPane()