Cicode Programming Reference > Cicode Function Categories > Window Functions Introduction > WinNext

WinNext

Makes the next window (in order of creation) active.

Syntax

WinNext()

Return Value

The window number of the window, or -1 if there is no next window. Be aware that this is not the same as the window handle returned from the WndFind() function.

Related Functions

WinNew, WinPrev

Example

! If the display window being made active is window number 2:
Window=WinNext();
! Makes the next window active and sets Window to 2.

See Also

Window Functions