<div class="meta" robots="noindex">

</div>

Method

# WindowCount

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `Application.WindowCount<application.windowcount>` as a replacement.

</div>

## Description

Returns the number of open windows.

## Usage

*result*=**WindowCount**

| Part   | Type                               | Description                 |
|--------|------------------------------------|-----------------------------|
| result | `Integer</api/data_types/integer>` | The number of open windows. |

## Notes

The <span class="title-ref">WindowCount</span> function returns the number of open windows. This includes any windows that are invisible. If called during a window's Open event, it includes that window. If called during a window's Close event, it does not include that window.

## Compatibility

All project types on all supported operating systems.

## See also

`Window<application.window>` function; `Window</api/deprecated/window>` class.
