SETCONSOLE

Action

Changes the display state of the command-prompt window in which KiXtart is running.

 

Syntax

SETCONSOLE("mode")

 

Parameters

Mode

String that specifies the new display state. The following table shows the display states that are supported by this function.

 

SHOW

Show window

HIDE

Hide window

FOREGROUND

Move window to foreground

ALWAYSONTOP

Bring window to top

MINIMIZE

Minimize window

MAXIMIZE

Maximize window

 

Remarks

If a window is hidden, it does not disappear from the system, but remains active.

Returns

 

0

Display state changed

Error code

Function failed

 

Example

If SetConsole ("FOREGROUND") = 0

   ? "Console moved to foreground......"

Endif