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

WinPrev

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

Syntax

WinPrev()

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

WinNext

Example

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

See Also

Window Functions