Application.WindowCount

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aApplication.WindowCount

New in 2019r2

Supported for all project types and targets.

Returns the number of open windows.

Notes

The WindowCount property 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.

Examples

See the Window function for an example.

See Also

Window function; Window class.