CloseAll Method (ConsoleClass)

Class

ConsoleClass.

Action

Closes all open consoles or all consoles with a specific caption.

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

Console.CloseAll ([sCaption])
Variable Description
sCaption Set this parameter to close only the consoles with this caption. STRING

Example

The following sample shows how you close all console windows with the caption MyCommandWindow:
Console.CloseAll("MyCommandWindow")